toAddress property

String get toAddress

Generates an address for this public key, using the provided kwargs for additional parameters. The exact encoding method depends on the coin configuration. An exception is thrown for special cases like Cardano Shelley or Monero, which require using specific classes to generate addresses.

Implementation

String get toAddress {
  return coinConf.encodeAddress(
    EncodeAddressDefaultParams(
      pubKey: pubKey.pubKey.compressed,
      chainCode: pubKey.keyData.chainCode.toBytes(),
    ),
  );
}