encodeAddress method

Future<Map?> encodeAddress(
  1. List<String> pubKeys,
  2. dynamic ss58List
)

encode addresses to publicKeys

Implementation

Future<Map?> encodeAddress(List<String> pubKeys, ss58List) async {
  final dynamic res = await serviceRoot.webView!.evalJavascript(
      'account.encodeAddress(${jsonEncode(pubKeys)}, ${jsonEncode(ss58List)})');
  return res;
}