addressFromMnemonic method

Future<AddressIconData> addressFromMnemonic(
  1. int ss58, {
  2. CryptoType cryptoType = CryptoType.sr25519,
  3. String derivePath = '',
  4. required String mnemonic,
})

get address and avatar from mnemonic.

Implementation

Future<AddressIconData> addressFromMnemonic(int ss58,
    {CryptoType cryptoType = CryptoType.sr25519,
    String derivePath = '',
    required String mnemonic}) async {
  final addressInfo = await service!.addressFromMnemonic(ss58,
      cryptoType: cryptoType, derivePath: derivePath, mnemonic: mnemonic);
  return addressInfo;
}