Skip to main content

Enso Route vs Enso Quoter

Route finds a path, quotes it, and returns signer-ready transaction data. Quoter simulates and validates a transaction you already built and is not required before Route.

J
Written by Javier Diaz

The Route API finds a path, quotes it, and returns signer-ready transaction data. Enso Quoter simulates and validates a transaction you already built. Quoter is not required before you call Route.

Definition

Route is a path-finding and execution API: you specify the source and destination, and Enso returns amountOut, minAmountOut, and tx. Quoter is a simulate-then-validate API: you already have calldata, and Quoter predicts output and checks that the unsigned transaction was not changed before signing.

How it works

  • Use Route when you need Enso to choose a path and produce the transaction.

  • Use Quoter when the transaction already exists, including calldata from outside Enso, and you want a simulation plus an integrity check.

  • Route already simulates internally as part of producing the quote. You do not need a separate Quoter call to get amountOut or gas from Route.

  • Quoter uses a different base URL and a five-minute simulation cache. Validation checks data, to, from, value, and chainId.

How Enso does this

Call POST https://api.enso.build/api/v1/shortcuts/route for path finding and signer-ready tx data. Call POST https://quoter.api.enso.build/api/v1/simulate and POST /api/v1/validate for an already-built EVM transaction, using the same Developer Portal API key. See DeFi and Swap Routing and Quoter.

FAQ

Do I quote with Quoter or Route?

Quote a path with Route. Use Quoter to simulate or validate calldata you already have.

Can I validate a Route transaction with Quoter?

You can, because Quoter is source-agnostic, but it is optional. Route has already simulated the path it returned. If you do, validate within the five-minute cache window and do not sign when checks fail.

Related articles

  • What is Enso Quoter?

  • How do I simulate or validate a transaction I built myself?

  • What is the Enso Route API?

  • What is transaction simulation in DeFi?

  • How do I show a quote before the user signs?

Sources

Did this answer your question?