p2tr
bitcoinjs-lib / payments / p2tr
Function: p2tr()
p2tr(
a
,opts
?):Payment
Defined in: ts_src/payments/p2tr.ts:38
Creates a Pay-to-Taproot (P2TR) payment object.
Parameters
a
The payment object containing the necessary data for P2TR.
opts?
Optional payment options.
Returns
The P2TR payment object.
Throws
If the provided data is invalid or insufficient.