Function p2pkh

  • Creates a Pay-to-Public-Key-Hash (P2PKH) payment object.

    Parameters

    • a: Payment

      The payment object containing the necessary data.

    • Optional opts: PaymentOpts

      Optional payment options.

    Returns Payment

    The P2PKH payment object.

    Throws

    If the required data is not provided or if the data is invalid.