Inner Transactions Question - General - Algorand

Inner Transactions Question

post by javier0rosas on Oct 16, 2021

Can I create an atomic transaction using the new inner transactions Teal v5? Meaning where a group of transactions are submitted as a unit and all transactions in the batch either pass or fail.

557 views

post by fabrice on Oct 16, 2021

Inner transactions in TEAL 5 either all execute successfully or make the parent TEAL application fail.

In other words, if you have a group of normal transactions that themselves create inner transactions, everything is atomic: either all the normal transactions and inner transactions get executed, or none of them are executed.

Note however that the inner transactions do not have the group ID field set.

Since only payment and asset transfers are currently supported, this is not a problem.