How can I group and order all my transactions in TEAL?

Is it possible to group, order and list all my transactions in a smart contract ? I would like to group, order, list all my transactions and aggregate them. Is it possible to annotate and add metadata in this process of aggregating transactions. Does TEAL support this operation.

Hi @gokulalex,

A TEAL-script cannot by itself generate a transaction or a group of transactions: it can only approve or reject a transaction. It can do so by applying some logic on the transaction fields of the transaction itself or any transaction of the group.

What are looking to achieve more concretely?

See https://developer.algorand.org/docs/asc#teal-guidelines for more details.