Skip to main content

Transaction simulation vs eth_call

Both can preview calldata without sending a transaction. Enso Quoter adds token-flow amountOut, a simulationId, and a validate-before-sign check on a forked EVM state.

J
Written by Javier Diaz

Both a node eth_call and a transaction simulator can preview calldata without broadcasting a transaction. Enso Quoter adds documented token-flow amountOut, a simulationId, and a validate-before-sign check, running the call on a forked EVM state at the current block.

Definition

eth_call is a standard JSON-RPC method that executes a call against node state without sending a transaction. Quoter is a simulate-then-validate API: it executes already-built EVM calldata on a fork, returns predicted amountOut and gas, and later checks that the unsigned transaction still matches.

How it works

  • Compare output: Quoter returns result.amountOut for the tokenOut addresses you listed, plus result.gas and result.status. A raw eth_call returns the call’s return data and does not, by itself, give Quoter’s token-flow preview or error types.

  • Compare integrity: Quoter’s validate step checks data, to, from, value, and chainId against a five-minute cached simulationId. eth_call does not provide that tamper check.

  • Compare funds: Quoter can simulate without the actual tokens in the wallet. You still need funds and gas to submit on-chain.

  • Compare scope: Quoter is source-agnostic and works with any valid EVM calldata. It does not replace a node, and it does not build a route.

How Enso does this

Use POST https://quoter.api.enso.build/api/v1/simulate and POST /api/v1/validate. See How It Works and Quoter. Enso’s public docs do not specify eth_call behavior; the eth_call side of this comparison is general EVM knowledge, not an Enso source.

FAQ

Should I use eth_call instead of Quoter before I sign?

If you need predicted amountOut, gas from the fork, and a validate-before-sign check, use Quoter. A raw eth_call can still be useful for contract return data, but it is not the documented Quoter security model.

Is this the same as a Route quote?

No. Route finds a path and already simulates internally. Quoter simulates calldata you already have.

Related articles

  • What is a forked EVM simulation?

  • How do I validate that a transaction has not been tampered with?

  • What is the difference between Route amountOut and Quoter amountOut?

  • What is transaction simulation in DeFi?

  • What is Enso Quoter?

Sources

Did this answer your question?