Skip to main content

What is a simulationId?

A simulationId is the UUID Enso Quoter returns from a simulate call. You pass it to validate before the user signs. It expires after five minutes.

J
Written by Javier Diaz

A simulationId is the UUID Enso Quoter returns from a simulate call. You pass it to the validate endpoint before the user signs, so Quoter can confirm the unsigned transaction still matches what was simulated.

Definition

Each successful or failed simulation that Quoter records gets a simulationId. That ID is the handle for the cached simulation: predicted amountOut, gas, status, and the transaction fields that validation will check. It is not a route quote ID, and it is not required when you only call the Route API.

How it works

  • You send an already-built transaction to POST https://quoter.api.enso.build/api/v1/simulate.

  • The response includes simulationId plus result.status, result.amountOut, and result.gas.

  • Before signing, you send that ID and the unsigned transaction to POST /api/v1/validate.

  • The ID is cached for five minutes. After expiry, validate returns HTTP 404 and you must simulate again.

  • A batch simulate call returns a results array; each item has its own simulationId.

How Enso does this

Use the Quoter base URL https://quoter.api.enso.build and the same Developer Portal API key as the main Enso API. See Simulating Transactions and Validating Transactions. Route already simulates internally and does not issue a Quoter simulationId.

FAQ

Can I reuse a simulationId after the user changes the transaction?

No. If any checked field changed, validation fails. Re-simulate the new transaction to get a fresh ID.

What if validate returns 404?

The ID is missing or expired. Call simulate again and validate within the five-minute window.

Related articles

  • How long is an Enso simulation cached?

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

  • Why did Quoter return a 404 on validate?

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

  • What is Enso Quoter?

Sources

Did this answer your question?