Function hdPrivateKeyToP2pkhAddress

  • Derive the P2PKH address at the provided index of the provided HD private key.


    • __namedParameters: {
          addressIndex: number;
          hdKey: string;
          prefix?: "bitcoincash" | "bchtest" | "bchreg";
      • addressIndex: number

        The address index at which to derive the address.

      • hdKey: string

        An encoded HD private key, e.g. xprv9s21ZrQH143K2JbpEjGU94NcdKSASB7LuXvJCTsxuENcGN1nVG7QjMnBZ6zZNcJaiJogsRaLaYFFjs48qt4Fg7y1GnmrchQt1zFNu6QVnta

        HD private keys may be encoded for either mainnet or testnet (the network information is ignored).

      • Optional prefix?: "bitcoincash" | "bchtest" | "bchreg"

        The CashAddressNetworkPrefix to use when encoding the address. (Default: bitcoincash)

    Returns string

Generated using TypeDoc