ConstThe itxn API offered by teal opcodes has some rough edges which are not fully abstracted over by this compose API, but it hoped that use cases for it are limited and that most transaction groups can be composed with a static size relying on the atomic nature of the outer transaction to ensure multiple smaller itxn groups are committed atomically.
The itxnCompose helper can be used to build dynamically sized itxn groups which aren't supported by the stronger typed itxn paradigm. The first transaction in a group must be 'staged' with
itxnCompose.beginwhilst all other transactions in the group should useitxnCompose.next. When the group is complete it can be submitted usingitxnCompose.submit.