• Creates a Pay-to-Witness-Script-Hash (P2WSH) payment object.

    Parameters

    • a: Payment

      The payment object containing the necessary data.

    • Optionalopts: PaymentOpts

      Optional payment options.

    Returns Payment

    The P2WSH payment object.

    If the required data is missing or invalid.