addressFromRawSeed method

Future<AddressIconData> addressFromRawSeed(
  1. String privateKey, {
  2. String derivePath = '',
})

get address and avatar from privateKey.

Implementation

Future<AddressIconData> addressFromRawSeed(String privateKey,
    {String derivePath = ''}) async {
  final wallet = ethers.Wallet.fromPrivateKey(privateKey);
  return AddressIconData.fromJson({'address': wallet.address, 'svg': 'xxx'});
}