Transaction class
A bitcoin transaction.
Properties
Methods
-
input(
{dynamic hint}) → List< TxIn> - List of transaction inputs.
-
isCoinBase(
) → bool -
Is this a coin base transaction?
inherited
-
isExplicitlyRbf(
) → bool -
Returns true if the transaction itself opted in to be BIP-125-replaceable (RBF).
This does not cover the case where a transaction becomes replaceable due to ancestors being RBF.
inherited
-
isLockTimeEnabled(
) → bool -
Returns true if this transactions nLockTime is enabled (BIP-65 ).
inherited
-
lockTime(
) → LockTime -
Block height or timestamp. Transaction cannot be included in a block until this height/time.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
output(
{dynamic hint}) → List< TxOut> - List of transaction outputs.
-
serialize(
) → Uint8List -
Encodes an object into a vector.
inherited
-
size(
) → BigInt -
Returns the regular byte-wise consensus-serialized size of this transaction.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
txid(
) → String -
Computes the txid. For non-segwit transactions this will be identical to the output of wtxid(),
but for segwit transactions, this will give the correct txid (not including witnesses) while wtxid will also hash witnesses.
inherited
-
version(
) → int -
The protocol version, is currently expected to be 1 or 2 (BIP 68).
inherited
-
vsize(
) → BigInt -
Returns the “virtual size” (vsize) of this transaction.
inherited
-
weight(
) → BigInt -
Returns the regular byte-wise consensus-serialized size of this transaction.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBytes(
{required List< int> transactionBytes}) → Future<Transaction> - Transaction constructor Decode an object with a well-defined format.