addressFromKeyStore method

Future<AddressIconData> addressFromKeyStore(
  1. int ss58, {
  2. required Map keyStore,
})

get address and avatar from KeyStore.

Implementation

Future<AddressIconData> addressFromKeyStore(int ss58,
    {required Map keyStore}) async {
  final addressInfo =
      await service!.addressFromKeyStore(ss58, keyStore: keyStore);
  return AddressIconData.fromJson({
    'address': addressInfo[0][0],
    'svg': addressInfo[0][1],
  });
}