Private
methodPrivate
signedPrivate
statusPrivate
transactionsPrivate
txIDsStatic
MAX_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.
Optional
appArray of Address strings that represent external accounts supplied to this application. If accounts are provided here, the accounts specified in the method args will appear after these.
Optional
appArray of App ID numbers that represent external apps supplied to this application. If apps are provided here, the apps specified in the method args will appear after these.
Optional
appArray of Asset ID numbers that represent external assets supplied to this application. If assets are provided here, the assets specified in the method args will appear after these.
The ID of the smart contract to call. Set this to 0 to indicate an application creation call.
Optional
approvalThe approval program for this application call. Only set this if this is an application creation call, or if onComplete is OnApplicationComplete.UpdateApplicationOC
Optional
boxes?: BoxReference[]The box references for this application call
Optional
clearThe clear program for this application call. Only set this if this is an application creation call, or if onComplete is OnApplicationComplete.UpdateApplicationOC
Optional
extraThe 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.
Optional
lease?: Uint8ArrayThe lease value for this application call
The method to call on the smart contract
Optional
methodThe arguments to include in the method call. If omitted, no arguments will be passed to the method.
Optional
note?: Uint8ArrayThe note value for this application call
Optional
numThe global byte slice schema size. Only set this if this is an application creation call.
Optional
numThe global integer schema size. Only set this if this is an application creation call.
Optional
numThe local byte slice schema size. Only set this if this is an application creation call.
Optional
numThe local integer schema size. Only set this if this is an application creation call.
Optional
onThe OnComplete action to take for this application call. If omitted, OnApplicationComplete.NoOpOC will be used.
Optional
rekeyIf 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.
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.
Simulates the transaction group in the network.
The composer will try to sign any transactions in the group, then simulate the results. Simulating the group will not change the composer's status.
An Algodv2 client
Optional
request: SimulateRequestSimulateRequest with options in simulation. If provided, the request's transaction group will be overrwritten by the composer's group, only simulation related options will be used.
A promise that, upon success, resolves to an object containing an array of results containing one element for each method call transaction in this group (ABIResult[]) and the SimulateResponse object.
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.
Static
parseParses a single ABI Method transaction log into a ABI result object.
An ABIResult object
Generated using TypeDoc
A class used to construct and execute atomic transaction groups