generateMnemonic method

Future<AddressIconDataWithMnemonic> generateMnemonic(
  1. int ss58, {
  2. CryptoType cryptoType = CryptoType.sr25519,
  3. String derivePath = '',
  4. String key = '',
})

Generate a set of new mnemonic.

Implementation

Future<AddressIconDataWithMnemonic> generateMnemonic(int ss58,
    {CryptoType cryptoType = CryptoType.sr25519,
    String derivePath = '',
    String key = ''}) async {
  final mnemonicData = await service!.generateMnemonic(ss58,
      cryptoType: cryptoType, derivePath: derivePath, key: key);
  return mnemonicData;
}