• Creates a pay-to-witness-public-key-hash (p2wpkh) payment object.

    Parameters

    • a: Payment

      The payment object containing the necessary data.

    • Optionalopts: PaymentOpts

      Optional payment options.

    Returns Payment

    The p2wpkh payment object.

    If the required data is missing or invalid.