getAddress method

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

Get the P2PKH address for a specific change and address index.

Implementation

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