Transaction class
Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.kebab)
Constructors
-
Transaction({required String? id, required int fee, required int firstValid, required int lastValid, required String sender, required String type, required TransactionSignature? signature, required List<
EvalDeltaKeyValue> globalStateDelta, required List<AccountStateDelta> localStateDelta, required List<Transaction> innerTxns, required List<String> logs, int? createdApplicationIndex, int? createdAssetIndex, int? closeRewards, int? closingAmount, int? confirmedRound, String? genesisHash, String? genesisId, int? intraRoundOffset, int? receiverRewards, int? roundTime, int? senderRewards, String? group, String? lease, String? note, String? authAddress, String? rekeyTo, PaymentTransactionResponse? paymentTransaction, ApplicationTransactionResponse? applicationTransaction, AssetConfigTransactionResponse? assetConfigTransaction, AssetFreezeTransactionResponse? assetFreezeTransaction, AssetTransferTransactionResponse? assetTransferTransaction, KeyRegistrationTransactionResponse? keyRegistrationTransaction}) -
Transaction.fromJson(Map<
String, dynamic> json) -
factory
Properties
- applicationTransaction → ApplicationTransactionResponse?
-
Fields for application transactions.
final
- assetConfigTransaction → AssetConfigTransactionResponse?
-
Fields for asset allocation, re-configuration, and destruction.
A zero value for asset-id indicates asset creation.
A zero value for the params indicates asset destruction.
final
- assetFreezeTransaction → AssetFreezeTransactionResponse?
-
Fields for an asset freeze transaction.
final
- assetTransferTransaction → AssetTransferTransactionResponse?
-
Fields for an asset transfer transaction.
final
- authAddress → String?
-
(sgnr) this is included with signed transactions when the signing address
does not equal the sender. The backend can use this to ensure that auth
addr is equal to the accounts auth addr.
final
- closeRewards → int?
-
Rewards applied to close-remainder-to account.
final
- closingAmount → int?
-
Closing amount for transaction.
final
- confirmedRound → int?
-
Round when the transaction was confirmed.
final
- createdApplicationIndex → int?
-
Specifies an application index (ID) if an application was created with
this transaction.
final
- createdAssetIndex → int?
-
Specifies an asset index (ID) if an asset was created with
this transaction.
final
- fee → int
-
Transaction fee.
final
- firstValid → int
-
First valid round for this transaction
final
- genesisHash → String?
-
Hash of genesis block.
final
- genesisId → String?
-
Genesis block ID.
final
-
globalStateDelta
→ List<
EvalDeltaKeyValue> -
Global state key/value changes for the application being executed by this
transaction.
final
- group → String?
-
Base64 encoded byte array of a sha512/256 digest. When present indicates
that this transaction is part of a transaction group and the value is the
sha512/256 hash of the transactions in that group.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Transaction ID
final
-
innerTxns
→ List<
Transaction> -
Inner transactions produced by application execution.
final
- intraRoundOffset → int?
-
Offset into the round where this transaction was confirmed.
final
- keyRegistrationTransaction → KeyRegistrationTransactionResponse?
-
Fields for a key registration transaction
final
- lastValid → int
-
Last valid round for this transaction.
final
- lease → String?
-
Base64 encoded 32-byte array. Lease enforces mutual exclusion of
transactions. If this field is nonzero, then once the transaction is
confirmed, it acquires the lease identified by the (Sender, Lease) pair
of the transaction until the LastValid round passes.
While this transaction possesses the lease, no other transaction
specifying this lease can be confirmed.
final
-
localStateDelta
→ List<
AccountStateDelta> -
Local state key/value changes for the application being executed by this
transaction.
final
-
logs
→ List<
String> -
Logs for the application being executed by this transaction.
final
- note → String?
-
Free form data.
final
- paymentTransaction → PaymentTransactionResponse?
-
Fields for a payment transaction.
Optional information about a payment transaction - see payment
final
- receiverRewards → int?
-
Rewards applied to receiver account.
final
- rekeyTo → String?
-
When included in a valid transaction, the accounts auth addr will be
updated with this value and future signatures must be signed with the key
represented by this address.
final
- roundTime → int?
-
Time when the block this transaction is in was confirmed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → String
-
Sender's address.
final
- senderRewards → int?
-
Rewards applied to sender account.
final
- signature → TransactionSignature?
-
Validation signature associated with some data.
final
- type → String
-
Indicates what type of transaction this is.
Different types have different fields.
Valid types, and where their fields are stored:
pay
payment-transactionkeyreg
keyreg-transactionacfg
asset-config-transactionaxfer
asset-transfer-transactionafrz
asset-freeze-transactionappl
application-transactionfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited