Transaction class

Represents Transaction in the Stellar network.

Inheritance

Constructors

Transaction(MuxedAccount _mSourceAccount, int _mFee, int _mSequenceNumber, List<Operation> _mOperations, Memo? memo, TransactionPreconditions? preconditions, {XdrSorobanTransactionData? sorobanTransactionData})

Properties

fee int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
memo Memo?
no setter
operations List<Operation>
Returns the list of operations in this transaction.
no setter
preconditions TransactionPreconditions?
Return transaction preconditions as specified by CAP-21 and CAP-40
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequenceNumber int
no setter
signatures List<XdrDecoratedSignature>
getter/setter pairinherited
sorobanTransactionData XdrSorobanTransactionData?
getter/setter pair
sourceAccount MuxedAccount
no setter

Methods

addResourceFee(int resourceFee) → dynamic
hash(Network network) Uint8List
Returns the transaction hash of this transaction.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSorobanAuth(List<SorobanAuthorizationEntry>? auth) → dynamic
sets soroban auth to the host function of the invoke contract operation if any.
sign(KeyPair signer, Network network) → void
Signs the transaction for the signer and given network passphrase.
inherited
signatureBase(Network network) 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
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.
toXdrBase64() String

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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