Wallet.random constructor
Wallet.random(
- NetworkInfo networkInfo, {
- String derivationPath = derivationPath,
Generated a new random Wallet using the specified networkInfo
and the optional derivationPath
.
Implementation
factory Wallet.random(
NetworkInfo networkInfo, {
String derivationPath = derivationPath,
}) {
return Wallet.derive(
Bip39.generateMnemonic(strength: 256),
networkInfo,
derivationPath: derivationPath,
);
}