p2sh
reddcoinjs-lib v7.0.1-rdd.1 • Docs
reddcoinjs-lib v7.0.1-rdd.1 / payments / p2sh
Function: p2sh()
p2sh(
a,opts?):Payment
Creates a Pay-to-Script-Hash (P2SH) payment object.
Parameters
• a: Payment
The payment object containing the necessary data.
• opts?: PaymentOpts
Optional payment options.
Returns
The P2SH payment object.
Throws
If the required data is not provided or if the data is invalid.