getBase58PubKeyFromHexValue method

Future<String> getBase58PubKeyFromHexValue({
  1. required String? hexEncodedPubKey,
})

Implementation

Future<String> getBase58PubKeyFromHexValue(
    {required String? hexEncodedPubKey}) async {
  if (hexEncodedPubKey == null) {
    throw Exception('hexEncodedPubKey is incorrect');
  }
  final res = await jsVMService.callJS(
      "window.NearBlockchain.getBase58PubKeyFromHexValue('$hexEncodedPubKey')");
  return res.toString();
}