A transaction input, which defines old coins to be consumed
The reference to the previous output that is being used an an input
The script which pushes values on the stack which will cause
the referenced output's script to accept
The sequence number, which suggests to miners which of two
conflicting transactions should be preferred, or 0xFFFFFFFF
to ignore this feature. This is generally never used since
the miner behaviour cannot be enforced.
Witness data: an array of byte-arrays.
Note that this field is not (de)serialized with the rest of the TxIn in
Encodable/Decodable, as it is (de)serialized at the end of the full
Transaction. It is (de)serialized with the rest of the TxIn in other
(de)serialization routines.
Encode an object with a well-defined format, should only ever error if the underlying Encoder errors. Read more
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static