CosmosWallet.random constructor
CosmosWallet.random(
- CosmosNetworkInfo networkInfo, {
- 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,
);
}