The version of the transaction.
The cell dependencies of the transaction.
The header dependencies of the transaction.
The inputs of the transaction.
The outputs of the transaction.
The data associated with the outputs.
The witnesses of the transaction.
The version of the transaction.
The cell dependencies of the transaction.
The header dependencies of the transaction.
The inputs of the transaction.
The outputs of the transaction.
The data associated with the outputs.
The witnesses of the transaction.
Static
Optional
byteThe bytes length of the entity, if it is fixed, otherwise undefined
Static
defaultCreates a default Transaction instance with empty fields.
A default Transaction instance.
Copy every properties from another transaction.
Static
fromCreates a Transaction instance from a TransactionLike object.
A TransactionLike object or an instance of Transaction.
A Transaction instance.
Static
fromCreates a Transaction instance from a Lumos skeleton.
The Lumos transaction skeleton.
A Transaction instance.
Static
hashComputes the signing hash information for a given script.
The script associated with the transaction, represented as a ScriptLike object.
The client for complete extra infos in the transaction.
A promise that resolves to an object containing the signing message and the witness position, or undefined if no matching input is found.
Find the first occurrence of a input with the specified lock id
The script associated with the transaction, represented as a ScriptLike object without args.
The client for complete extra infos in the transaction.
A promise that resolves to the found index
Find the first occurrence of a input with the specified lock
The script associated with the transaction, represented as a ScriptLike object.
The client for complete extra infos in the transaction.
A promise that resolves to the prepared transaction
Find the last occurrence of a input with the specified lock
The script associated with the transaction, represented as a ScriptLike object.
The client for complete extra infos in the transaction.
A promise that resolves to the prepared transaction
Add cell deps if they are not existed
Rest
...cellDepLikes: (CellDepLike | CellDepLike[])[]The cell deps to add
Add cell deps at the start if they are not existed
Rest
...cellDepLikes: (CellDepLike | CellDepLike[])[]The cell deps to add
Add cell dep from infos if they are not existed
A client for searching cell deps
Rest
...cellDepInfoLikes: (CellDepInfoLike | CellDepInfoLike[])[]The cell dep infos to add
Add cell deps from known script
The client for searching known script and cell deps
Rest
...scripts: (KnownScript | KnownScript[])[]The known scripts to add
Set output data at index.
The index of the output data.
The data to set.
Add output
The cell output to add
optional output data
Get witness at index as WitnessArgs
The index of the witness.
The witness parsed as WitnessArgs.
Set witness at index by WitnessArgs
The index of the witness.
The WitnessArgs to set.
Prepare dummy witness for sighash all method
The script associated with the transaction, represented as a ScriptLike object.
The length of dummy lock bytes.
The client for complete extra infos in the transaction.
A promise that resolves to the prepared transaction
Optional
capacityTweak: NumLikeOptional
filter: ClientCollectableSearchKeyFilterLikeOptional
filter: ClientCollectableSearchKeyFilterLikeOptional
expectedFeeRate: NumLikeOptional
filter: ClientCollectableSearchKeyFilterLikeOptional
feeRate: NumLikeOptional
filter: ClientCollectableSearchKeyFilterLikeOptional
feeRate: NumLikeOptional
filter: ClientCollectableSearchKeyFilterLikeOptional
feeRate: NumLikeOptional
filter: ClientCollectableSearchKeyFilterLikeStatic
encodeEncode the entity into bytes
The entity to encode
The encoded bytes
Static
decodeDecode the entity from bytes
The bytes to decode
The decoded entity
Static
fromCreate an entity from bytes
The created entity
Create a clone of the entity
A clone of the entity
Check if the entity is equal to another entity
The other entity to compare with
True if the entities are equal, false otherwise
Creates an instance of Transaction.