getPublicKey method

Future<PublicKey> getPublicKey(
  1. int accountId
)

Method to get public key. It's called from rust

Implementation

Future<PublicKey> getPublicKey(int accountId) async {
  try {
    return await _getPublicKey(accountId);
  } catch (error) {
    throw ErrorCode.Generic;
  }
}