CosmosWallet.random constructor

CosmosWallet.random(
  1. CosmosNetworkInfo networkInfo, {
  2. String derivationPath = derivationPath,
})

Generated a new random CosmosWallet using the specified networkInfo and the optional derivationPath.

Implementation

factory CosmosWallet.random(
  CosmosNetworkInfo networkInfo, {
  String derivationPath = derivationPath,
}) {
  return CosmosWallet.derive(
    Bip39.generateMnemonic(strength: 256),
    networkInfo,
    derivationPath: derivationPath,
  );
}