getAddress method

  1. @override
String getAddress(
  1. int changeIndex,
  2. int addressIndex
)
override

Get the P2PKH (pay-to-pub-key-hash) address for a specific change and address index.

Implementation

@override
String getAddress(int changeIndex, int addressIndex) {
  return P2PKHAddrEncoder().encodeKey(
      getPublicKey(changeIndex, addressIndex).compressed,
      {"net_ver": CoinsConf.bitcoinMainNet.params.p2pkhNetVer!});
}