Transaction
Bitcoin transaction. An authenticated movement of coins.
Constructors
This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.
Creates a new Transaction
instance from serialized transaction bytes.
Functions
Computes the Txid. Hashes the transaction excluding the segwit data (i.e. the marker, flag bytes, and the witness fields themselves).
Checks if this is a coinbase transaction. The first transaction in the block distributes the mining reward and is called the coinbase transaction. It is impossible to check if the transaction is first in the block, so this function checks the structure of the transaction instead - the previous output must be all-zeros (creates satoshis “out of thin air”).
Returns true
if the transaction itself opted in to be BIP-125-replaceable (RBF).
Returns true
if this transactions nLockTime is enabled (BIP-65).