AtomicTransactionComposer class
Constructs an atomic transaction group which may contain a combination of Transactions and ABI Method calls.
Constructors
-
AtomicTransactionComposer({Map<
int, AbiMethod> ? methods, List<TransactionWithSigner> ? transactions, List<SignedTransaction> ? signedTxns})
Properties
- count → int
-
Get the number of transactions currently in this atomic group.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
methodMap
→ Map<
int, AbiMethod> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signedTxns
→ List<
SignedTransaction> -
final
- status → AtcStatus
-
Get the current status of the Atomic Transaction Composer.
no setter
-
transactions
→ List<
TransactionWithSigner> -
final
Methods
-
addMethodCall(
MethodCallParams methodCall) → Future< void> - Add a smart contract method call to this atomic group.
-
addTransaction(
TransactionWithSigner signer) → void - Add a transaction to this atomic group.
-
buildGroup(
) → List< TransactionWithSigner> - Finalize the transaction group and returned the finalized transactions.
-
execute(
Algorand algorand, {int waitRounds = 5}) → Future< ExecuteResult> - Send the transaction group to the network and wait until it's committed to a block. An error will be thrown if submission or execution fails.
-
gatherSignatures(
) → Future< List< SignedTransaction> > - Obtain signatures for each transaction in this group. If signatures have already been obtained, this method will return cached versions of the signatures.
-
getTransactionIds(
) → List< String> - Get a list of all transaction ids.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
submit(
Algorand algorand, {bool waitForConfirmation = false}) → Future< List< String> > - Send the transaction group to the network, but don't wait for it to be committed to a block. An error will be thrown if submission fails.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- ABI_RET_HASH → Uint8List
-
final
Constants
- MAX_GROUP_SIZE → const int