Function p2wsh

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

    Parameters

    • a: Payment

      The payment object containing the necessary data.

    • Optional opts: PaymentOpts

      Optional payment options.

    Returns Payment

    The P2WSH payment object.

    Throws

    If the required data is missing or invalid.