encodeAddress method

Future<Map?> encodeAddress(
  1. List<String> pubKeys
)

encode addresses to publicKeys

Implementation

Future<Map?> encodeAddress(List<String> pubKeys) async {
  final int? ss58 = apiRoot.connectedNode!.ss58;
  final Map? res = await service.encodeAddress(pubKeys, [ss58]);
  if (res != null) {
    return res[ss58.toString()];
  }
  return null;
}