Post
Share your knowledge.
Batch multiple transactions on Sui like EVM .call?
I'm trying to execute call data in Sui similar to EVM's .call. I want to batch multiple transactions from the client-side to dynamically create and execute them, sending txBytes to a contract for execution like .call. Can someone explain how I can achieve this without using multiple move calls?
- Move CLI
- Move
Answers
2You can use a Sui Programmable Transaction Block to batch transactions on Sui. Check the documentation for more details: https://docs.sui.io/concepts/transactions/prog-txn-blocks.
Though Sui doesn't have a .call function, the best way to handle your scenario is by using Sui Transaction Blocks. If you're using the Typescript SDK, building these blocks is quite straightforward. Here's a guide that may help: https://docs.sui.io/guides/developer/sui-101/building-ptb.
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.