PendingTransaction class
Given a transaction id of a recently submitted transaction, it returns information about it. There are several cases when this might succeed:
- transaction committed (committed round > 0)
- transaction still in the pool (committed round = 0, pool error = "")
- transaction removed from pool due to error (committed round = 0, pool error != "")
Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.kebab)
Constructors
-
PendingTransaction({required SignedTransaction transaction, required String poolError, required List<
EvalDeltaKeyValue> globalStateDelta, required List<AccountStateDelta> localStateDelta, required List<PendingTransaction> innerTxns, required List<String> logs, int? applicationIndex, int? assetIndex, int? closeRewards, int? closingAmount, int? confirmedRound, int? receiverRewards, int? senderRewards, int? assetClosingAmount}) -
PendingTransaction.fromJson(Map<
String, dynamic> json) -
factory
Properties
- applicationIndex → int?
-
The application index if the transaction was found and it created an
application.
final
- assetClosingAmount → int?
-
The number of the asset's unit that were transferred to the close-to
address.
final
- assetIndex → int?
-
The asset index if the transaction was found and it created an asset.
final
- closeRewards → int?
-
Rewards in microalgos applied to the close remainder to account.
final
- closingAmount → int?
-
Closing amount for the transaction.
final
- confirmedRound → int?
-
The round where this transaction was confirmed, if present.
final
-
globalStateDelta
→ List<
EvalDeltaKeyValue> -
Global state key/value changes for the application being executed by this
transaction.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
innerTxns
→ List<
PendingTransaction> -
Inner transactions produced by application execution.
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
- poolError → String
-
Indicates that the transaction was kicked out of this node's
transaction pool (and specifies why that happened).
final
- receiverRewards → int?
-
Rewards in microalgos applied to the receiver account.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderRewards → int?
-
Rewards in microalgos applied to the sender account.
final
- transaction → SignedTransaction
-
The raw signed transaction.
final
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