Batch submission of transactions from single account #165
Replies: 3 comments 3 replies
-
Do you want to batch them as one object or do you simply want them to be executed in a specific order? |
Beta Was this translation helpful? Give feedback.
-
@ilblackdragon I read the description again and realize that it is more feasible than I originally thought since all transactions originate from the same account. This means they will all be processed first on the same shard before receipts are generated and sent to different shards. As a result, we can utilize the same mechanism as we do for callbacks: we put some receipts in On the implementation side, we could potentially change actions to be a collection of actions where each element is a list of actions and allow users to specify dependencies between different elements. |
Beta Was this translation helpful? Give feedback.
-
Requiring nonce to be processed only after the entire previous transaction is processed will break the bridge's catchup mechanism, because it is submits 10 transactions at a time optimistically expecting them to be executed in a correct order. This change would require creating multiple access keys with separate nonces for applications like bridge which degrades DevX. I would imagine there are other use cases besides the bridge that need it. CC @djsatok , @artob , @mfornet |
Beta Was this translation helpful? Give feedback.
-
We are having more and more need for batching transactions to different accounts which continue running after first tx fully completed.
See details on the wallet side: near/near-wallet#1511
One of the issues is that tx can take multiple blocks to execute and if the next tx in the set already gets sent - tx may fail when it shouldn't.
Can we add requirement that next nonce can only be executed if transaction is fully done? Is there a better way to submit batch of transactions originating from single account but going to different destinations?
Beta Was this translation helpful? Give feedback.
All reactions