getCoinAddress method

Future<String> getCoinAddress(
  1. CoinType coinType
)

Returns the owner/controller for the current ENS name.

Implementation

Future<String> getCoinAddress(CoinType coinType) async {
  if (ensName == null) {
    throw 'ensName needs to be set first with .withName()';
  }

  final _resolvedAddress = await addr$2(nodeHash, coinType.coinTypeInt);
  return hex.encode(_resolvedAddress);
}