addressFromMnemonic method

Future addressFromMnemonic({
  1. String? derivePath,
  2. required String mnemonic,
})

get address and avatar from mnemonic.

Implementation

Future<dynamic> addressFromMnemonic(
    {String? derivePath, required String mnemonic}) async {
  final dynamic acc = await serviceRoot.webView!.evalJavascript(
      'eth.keyring.addressFromMnemonic("$mnemonic","${derivePath ?? default_derive_path}")');
  return acc;
}