Create Atomic Transfer
Last updated
Last updated
You can create an Atomic Transfer transaction directly inside IntelliJ IDE. Multiple transactions can be grouped inside a single Atomic Transfer transaction, so that either all succeed or all fail.
To create an Atomic Transfer, you need to first export each individual transaction as json file. Once all required transactions are exported to their corresponding json files, you can group them and create an Atomic Transfer transaction in the "Atomic Transfer" option in the IDE.
The following sections describe how to export transactions, create & post Atomic Transfer transactions.
Export Transaction
You can export any type of transaction ( Payment, Stateless contract, Stateful contract) to a json file through "Export Tx" button in the transaction screen. When export button is click, transaction is not posted to the network.
Transaction json files are generated under the build/txns folder.
To create an Atomic Transfer transaction, select Algorand > Atomic Transfer
Select and add individual transactions.
After adding all individual transactions, click on "Create Group" to create and assign group id to each transaction in the group. Once the group id is assigned, "Create Group" button will be disabled.
Right click on each transaction and select "Sign" option to sign that transaction.
Once all the transactions are signed, you are ready to post the atomic transfer transaction. Click Ok to post the atomic transfer transaction.
Now either all transaction succeed or all fail.