Protected_maximumProtected ReadonlychalkProtected ReadonlycompiledProtectedenableProtectedfeeProtected ReadonlyfeeProtectedfromProtectedhideProtectedignoreProtected ReadonlyinputsProtected ReadonlyisIs the transaction being generated inside a browser?
ProtectedisProtectedleftReadonlylogProtected ReadonlyminimumReadonlymoduleProtected ReadonlynetworkProtected OptionalnonAdd a non-witness utxo to the transaction
Protected ReadonlyoriginalProtected ReadonlyoutputsProtectedpriorityProtected ReadonlypublicProtected ReadonlyreceiverProtected ReadonlyrefundProtectedregeneratedProtected ReadonlyrequestedProtectedscriptProtected ReadonlyscriptProtectedsequenceProtected ReadonlysighashProtectedsignedProtected ReadonlysignerProtectedtapProtectedtapThe tap leaf script
ProtectedtargetProtectedtoProtectedtotalProtectedtransactionProtected OptionaltweakedProtected ReadonlyupdateProtectedutxosStatic ReadonlyLOCK_Static ReadonlyMINIMUM_Static ReadonlynumsStatic ReadonlysignAdd an input to the transaction.
The input to add
ProtectedaddProtectedaddAdd an output to the transaction.
The output to add
ProtectedaddProtectedaddProtectedbuildProtectedcalculateProtectedcalculateProtectedgenerateProtectedGenerate the PSBT input extended
The UTXO
The index of the input
The PSBT input extended
ProtectedgenerateProtectedgenerateProtectedgetProtectedReturns the inputs of the transaction.
ProtectedgetProtectedReturns the outputs of the transaction.
ProtectedgetProtectedgetProtectedgetProtectedgetProtectedgetProtectedinternalProtectedinternalProtectedinternalPre-estimate the transaction fees
The fee rate
The number of inputs
The number of outputs
The number of signatures
The number of public keys
ProtectedsetProtectedSet transaction fee output.
The output to set the fees
ProtectedsignProtectedsignProtectedsplitProtectedtweakProtectedupdateProtectedAdd an input update
The input to update
ProtectedverifyUTXOValidityStaticattemptAttempt to finalize the inputs
The psbt
The start index
The ordered public keys
If the transaction is final
True if the inputs were finalized
Protected StaticcalculateStaticdedupeStaticfromGenerate a multisig transaction from a base64 psbt.
The parameters
The multisig transaction
StaticgetStaticpartialPartially finalize a P2TR MS transaction
The input index
The input
The partial signatures
The ordered public keys
If the transaction is final
StaticprePre-estimate the transaction fees for a Taproot transaction
The fee rate in satoshis per virtual byte
The number of inputs
The number of outputs
The number of witness elements (e.g., number of control blocks and witnesses)
The average size of each witness element in bytes
The amount of empty witnesses
OptionaltaprootControlWitnessSize: bigint = 32nThe size of the control block witness in bytes
OptionaltaprootScriptSize: bigint = 139nThe size of the taproot script in bytes
Protected StaticreadProtected StaticsignStaticsignPartially sign the transaction
True if the transaction was signed
StaticverifyProtected Staticwitness
Create a multi sign p2tr transaction MultiSignTransaction