pubKeyToWalletAddr static method

Future<String?> pubKeyToWalletAddr(
  1. String publicKey
)

pubKeyToWalletAddr converts a public key to its NKN wallet address

Implementation

static Future<String?> pubKeyToWalletAddr(String publicKey) async {
  try {
    final String address =
        await _methodChannel.invokeMethod('pubKeyToWalletAddr', {
      'publicKey': publicKey,
    });
    return address;
  } catch (e) {
    return null;
  }
}