The maximum size of an atomic transaction group.
Add a smart contract method call to this atomic group.
An error will be thrown if the composer's status is not BUILDING, if adding this transaction causes the current group to exceed MAX_GROUP_SIZE, or if the provided arguments are invalid for the given method.
The ID of the smart contract to call. Set this to 0 to indicate an application creation call.
The approval program for this application call. Only set this if this is an application creation call, or if onComplete is OnApplicationComplete.UpdateApplicationOC
The clear program for this application call. Only set this if this is an application creation call, or if onComplete is OnApplicationComplete.UpdateApplicationOC
The number of extra pages to allocate for the application's programs. Only set this if this is an application creation call. If omitted, defaults to 0.
The lease value for this application call
The method to call on the smart contract
The arguments to include in the method call. If omitted, no arguments will be passed to the method.
The note value for this application call
The global byte slice schema size. Only set this if this is an application creation call.
The global integer schema size. Only set this if this is an application creation call.
The local byte slice schema size. Only set this if this is an application creation call.
The local integer schema size. Only set this if this is an application creation call.
The OnComplete action to take for this application call. If omitted, OnApplicationComplete.NoOpOC will be used.
If provided, the address that the sender will be rekeyed to at the conclusion of this application call
The address of the sender of this application call
A transaction signer that can authorize this application call from sender
Transactions params to use for this application call
Add a transaction to this atomic group.
An error will be thrown if the transaction has a nonzero group ID, the composer's status is not BUILDING, or if adding this transaction causes the current group to exceed MAX_GROUP_SIZE.
Finalize the transaction group and returned the finalized transactions.
The composer's status will be at least BUILT after executing this method.
Create a new composer with the same underlying transactions. The new composer's status will be BUILDING, so additional transactions may be added to it.
Get the number of transactions currently in this atomic group.
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.
The composer's status must be SUBMITTED or lower before calling this method, since execution is only allowed once. If submission is successful, this composer's status will update to SUBMITTED. If the execution is also successful, this composer's status will update to COMMITTED.
Note: a group can only be submitted again if it fails.
An Algodv2 client
The maximum number of rounds to wait for transaction confirmation
A promise that, upon success, resolves to an object containing the confirmed round for this transaction, the txIDs of the submitted transactions, and an array of results containing one element for each method call transaction in this group.
Obtain signatures for each transaction in this group. If signatures have already been obtained, this method will return cached versions of the signatures.
The composer's status will be at least SIGNED after executing this method.
An error will be thrown if signing any of the transactions fails.
A promise that resolves to an array of signed transactions.
Get the status of this composer's transaction group.
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.
The composer's status must be SUBMITTED or lower before calling this method. If submission is successful, this composer's status will update to SUBMITTED.
Note: a group can only be submitted again if it fails.
An Algodv2 client
A promise that, upon success, resolves to a list of TxIDs of the submitted transactions.
Generated using TypeDoc
A class used to construct and execute atomic transaction groups