Transaction class

Represents Transaction in the Stellar network.

Inheritance

Constructors

Transaction(String sourceAccount, int fee, int sequenceNumber, List<Operation> operations, Memo memo, TimeBounds timeBounds, Network network)

Properties

fee int
Returns fee paid for this transaction in stroops (1 stroop = 0.0000001 XLM).
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
memo Memo
read-only
network Network
read-only, inherited
operations List<Operation>
Returns the list of operations in this transaction.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sequenceNumber int
read-only
signatures List<XdrDecoratedSignature>
read-only, inherited
sourceAccount String
read-only
timeBounds TimeBounds
Return TimeBounds of this transaction, or null (representing no time restrictions)
read-only

Methods

hash() Uint8List
Returns the transaction hash of this transaction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sign(KeyPair signer) → void
Signs the transaction for the signer.
inherited
signatureBase() Uint8List
Returns signature base of this transaction.
override
signHash(Uint8List preimage) → void
Adds a sha256Hash signature to this transaction by revealing preimage.
inherited
toEnvelopeXdr() XdrTransactionEnvelope
Generates a TransactionEnvelope XDR object for this transaction. This transaction needs to have at least one signature.
override
toEnvelopeXdrBase64() String
Returns a base64-encoded TransactionEnvelope XDR object of this transaction. This transaction needs to have at least one signature.
inherited
toString() String
Returns a string representation of this object.
inherited
toV0Xdr() XdrTransactionV0
Generates a V0 Transaction XDR object for this transaction.
toXdr() XdrTransaction
Generates a V1 Transaction XDR object for this transaction.

Operators

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

Static Methods

builder(TransactionBuilderAccount sourceAccount, Network network) TransactionBuilder
Builds a new TransactionBuilder object.
fromV0EnvelopeXdr(XdrTransactionV0Envelope envelope, Network network) Transaction
Creates a Transaction instance from a XdrTransactionV0Envelope envelope.
fromV1EnvelopeXdr(XdrTransactionV1Envelope envelope, Network network) Transaction
Creates a Transaction instance from a XdrTransactionV1Envelope envelope.