Use Enso Quoter’s batch simulate endpoint to preview up to five already-built transactions in one request. They must share the same tokenIn, tokenOut, and amountIn. Each result has its own simulationId for validation.
Definition
Batch simulation is a single API call that runs several already-built transactions, in order, and returns a results array with the same shape as a single simulate response. It is not a request for Enso to build those transactions, and it is not a Route quote.
How it works
Send
transactions(an array of transaction objects) instead of a singletransaction.Keep
tokenIn,tokenOut, andamountInat the top level, shared by every item.Read
resultsin the same order you sent the transactions. Each item hassimulationId,result.status,result.amountOut, andresult.gas.Validate each unsigned transaction against its own
simulationIdbefore it is signed.Stay within the documented maximum of five transactions per request.
How Enso does this
POST https://quoter.api.enso.build/api/v1/simulate/batch. See Simulating Transactions. If you have a single multicall payload — one to and one data that itself batches calls — send it to the regular /api/v1/simulate endpoint as one transaction.
FAQ
Can the batch items have different tokenIn or amountIn?
No. The batch endpoint requires the same tokenIn, tokenOut, and amountIn for the request. Use separate simulate calls when those differ.
Do I validate the whole batch in one call?
No. Each result has its own simulationId for /validate.
Related articles
Can I simulate a multicall with Enso Quoter?
How do I simulate a DeFi transaction before sending it?
What is a simulationId?
How do I preview the output of a transaction?
How do I simulate a transaction with curl?
