addressFromPrivateKey method

Future addressFromPrivateKey({
  1. required String privateKey,
})

get address and avatar from privateKey.privateKey: string

Implementation

Future<dynamic> addressFromPrivateKey({required String privateKey}) async {
  final dynamic acc = await serviceRoot.webView!
      .evalJavascript('eth.keyring.addressFromPrivateKey("$privateKey")');
  return acc;
}