Transaction class

Interface for a transaction transfering value between parties.

Implementers

Constructors

Transaction()

Properties

amount num
Amount of value this transaction transfers.
read-only
dateTime DateTime
Time this transaction was created for CRUZ or epoch.
read-only
expires int
Optional height expiry for including this transaction.
read-only
fee num
The handling fee paid to the PeerNetwork for this transaction.
read-only
from PublicAddress
PublicAddress this transaction transfers value from.
read-only
fromText String
The JSON-encoded sender of this transaction.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
height int
BlockHeader.height where this transaction appears in the blockchain. Zero for uncomfirmed transactions.
read / write
matures int
Optional height delay for including this transaction.
read-only
maturity int
Block height after which this transaction can be spent.
read-only
memo String
Optional memo attachment.
read-only
nonce int
De-dupes similar transactions for CRUZ or null.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
to PublicAddress
PublicAddress this transaction transfers value to.
read-only
toText String
The JSON-encoded receiver of this transaction.
read-only

Methods

id() TransactionId
Computes an ID for this transaction.
isCoinbase() bool
Returns true if this transaction rewards mining.
isExpired(int height) bool
Returns true if the transaction cannot be mined at the given height
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Marshals this transaction as a JSON-encoded string.
toString() String
Returns a string representation of this object.
inherited
verify() bool
Verifies this transaction's signature.

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

maturityCompare(Transaction a, Transaction b) int
Sorts by maturity and tie-break so only equivalent Transaction compare equal.
timeCompare(Transaction a, Transaction b) int
Sorts by time and tie-break so only equivalent Transaction compare equal.