Transaction class
Represents Transaction in the Stellar network.
- Inheritance
- Object
- AbstractTransaction
- Transaction
Constructors
-
Transaction(MuxedAccount sourceAccount,
int fee, int sequenceNumber, List< Operation> operations,Memo memo, TimeBounds timeBounds )
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
-
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 / write, inherited
- sourceAccount → MuxedAccount
-
read-only
- timeBounds → TimeBounds
-
Return TimeBounds of this transaction, or null (representing no time restrictions)
read-only
Methods
-
hash(
Network network ) → 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, Network network ) → void -
Signs the transaction for the
signer
and givennetwork
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
.