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

    Parameters

    • a: Payment

      The payment object containing the necessary data.

    • Optionalopts: PaymentOpts

      Optional payment options.

    Returns Payment

    The P2SH payment object.

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