Wallet.random constructor

Wallet.random(
  1. NetworkInfo networkInfo, {
  2. 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,
  );
}