addressFromPrivateKey method

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

get address and avatar from privateKey.privateKey: string

Implementation

Future<AddressIconData> addressFromPrivateKey(
    {required String privateKey}) async {
  final acc = await service.addressFromPrivateKey(privateKey: privateKey);
  if (acc['error'] != null) {
    throw Exception(acc['error']);
  }
  return AddressIconData.fromJson(acc);
}