Skip to main content

Can I simulate a transaction without holding the tokens?

Yes. Enso Quoter can simulate a transaction without the actual tokens in the wallet, so you can test before you commit funds.

J
Written by Javier Diaz

Yes. Enso Quoter can simulate a transaction without the actual tokens in the wallet, so you can test before you commit funds.

Definition

A Quoter simulation runs on a forked EVM state. The Quoter overview describes this as “no funds required”: you can preview amountOut, gas, and success or failure without the live balances that a real submission would need.

How it works

  • Send the already-built transaction, chainId, and the tokenIn, tokenOut, and amountIn values you want to track.

  • Review result.status, result.amountOut, and result.gas.

  • If the simulation would revert for a reason other than missing test funds — for example invalid calldata — fix the transaction and simulate again.

  • When you are ready to execute, the sender must actually hold the required tokens and allowances on-chain. The fork preview does not move funds.

How Enso does this

Call POST https://quoter.api.enso.build/api/v1/simulate. If the real call needs an approval first, you can include that approval in preSimulationTransactions so the fork has the allowance the main call expects. See Quoter and Simulating Transactions.

FAQ

If the simulation succeeds, will the on-chain transaction always succeed?

It would succeed against the forked state at that time. Live balances, allowances, and prices can still change before inclusion, so validate close to signing and keep slippage protection in the calldata.

Does “no funds required” mean I can skip gas when I submit?

No. Simulation is off-chain. Submitting the transaction still requires the sender to pay gas and to hold whatever the calldata spends.

Related articles

  • What is a forked EVM simulation?

  • What are preSimulationTransactions?

  • How do I check if a transaction will revert?

  • How do I preview the output of a transaction?

  • What is Enso Quoter?

Sources

Did this answer your question?