AbstractProtectedconstructorProtected_maximumProtected ReadonlychalkProtectedenableProtectedfeeProtected ReadonlyfeeProtectedfromProtectedhideProtectedignoreProtected ReadonlyinputsProtected ReadonlyisIs the transaction being generated inside a browser?
ProtectedisReadonlylogReadonlymoduleProtected ReadonlynetworkProtected OptionalnonAdd a non-witness utxo to the transaction
Protected ReadonlyoutputsProtectedpriorityProtectedregeneratedProtectedscriptProtectedsequenceProtectedsighashProtectedsignedProtected ReadonlysignerProtectedtapProtectedtapThe tap leaf script
ProtectedtoProtectedtotalProtectedtransactionProtected OptionaltweakedAbstract ReadonlytypeProtected ReadonlyupdateProtectedutxosStatic ReadonlyLOCK_Static ReadonlyMINIMUM_Add an input to the transaction.
The input to add
ProtectedaddProtectedaddAdd an output to the transaction.
The output to add
ProtectedaddProtectedaddProtected AbstractbuildProtectedcalculateProtectedcalculateProtectedgenerateProtectedGenerate 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.
ProtectedgetProtectedgetProtectedgetProtectedgetProtectedinternalProtectedinternalProtectedinternalPre-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
ProtectedverifyUTXOValidityProtected StaticcalculateStaticgetStaticprePre-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 StaticsignProtected Staticwitness
Allows to build a transaction like you would on Ethereum.
Description
The transaction builder class
TransactionBuilder