p2tr
reddcoinjs-lib v7.0.1-rdd.1 • Docs
reddcoinjs-lib v7.0.1-rdd.1 / payments / p2tr
Function: p2tr()
p2tr(
a,opts?):Payment
Creates a Pay-to-Taproot (P2TR) payment object.
Parameters
• a: Payment
The payment object containing the necessary data for P2TR.
• opts?: PaymentOpts
Optional payment options.
Returns
The P2TR payment object.
Throws
If the provided data is invalid or insufficient.