TxInput class

A transaction input requires a transaction id of a UTXO and the index of that UTXO.

txId the transaction id as a hex string txIndex the index of the UTXO that we want to spend scriptSig the script that satisfies the locking conditions sequence the input sequence (for timelocks, RBF, etc.)

Constructors

TxInput({required String txId, required int txIndex, Script? sig, Uint8List? sq})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptSig Script
getter/setter pair
sequence Uint8List
getter/setter pair
txId String
final
txIndex int
final

Methods

copy() TxInput
creates a copy of the object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
serializes TxInput to bytes
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromRaw({required String raw, int cursor = 0, bool hasSegwit = false}) → (TxInput, int)