getWalletByPrivateKey method

Future<Map<String, String>?> getWalletByPrivateKey(
  1. String privateKey
)

Get wallet by private key

Implementation

Future<Map<String, String>?> getWalletByPrivateKey(String privateKey) async {
  final wallet = await _channel.invokeMethod("getWalletByPrivateKey", {
    "private_key": privateKey,
  });

  return Map.from(wallet);
}