> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enso.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Quoter

> Simulate and validate any EVM transaction before signing to predict outcomes and prevent tampering.

Enso Quoter is a transaction simulation and validation API. It works with transactions from **any source** — DEX aggregators, DeFi protocols, custom contracts, or Enso's own routing API. Simulate first to predict `amountOut` and `gas`, then validate before signing to ensure the transaction hasn't been tampered with.

> [card] [Quick Start](https://docs.enso.build/pages/quoter/quick-start.md)
>
> Get a working simulate-then-validate flow in under 5 minutes.

> [card] [Simulate Transactions](https://docs.enso.build/pages/quoter/guides/simulate.md)
>
> Predict output amounts and gas consumption for any EVM transaction.

> [card] [Validate Transactions](https://docs.enso.build/pages/quoter/guides/validate.md)
>
> Verify transaction integrity before signing with per-field validation checks.

## Why Quoter?

> [card] Source-Agnostic
>
> Works with any EVM transaction — Uniswap, Aave, Enso, or your own contracts. No vendor lock-in.

> [card] Tamper Detection
>
> Compares every transaction parameter — calldata, target address, sender, value, and chain ID — to detect any modification between simulation and signing.

> [card] No Funds Required
>
> Simulate any transaction without needing the actual tokens in your wallet — test before you commit.

> [card] Exact Output Prediction
>
> Get the precise `amountOut` you would receive if the transaction were executed on-chain right now.

## How It Works

**1. Simulate**

Send your transaction to the `/simulate` endpoint with `tokenIn`, `tokenOut`, and `amountIn`.

You get back: `simulationId`, `amountOut`, `gas`, and `status`.

**2. Validate**

Before signing, send the unsigned transaction with the `simulationId` to `/validate`.

Quoter checks every field — `data`, `to`, `from`, `value`, `chainId` — and returns per-field results.

**3. Sign & Submit**

Once `valid: true`, sign and submit the transaction on-chain with confidence.

## Base URL

```
https://quoter.api.enso.build
```

## Authentication

Quoter uses the same Enso API key as the main Enso API. Pass it as a Bearer token in the `Authorization` header or as an `api_key` query parameter.

```bash theme={null}
# Bearer token
curl -H "Authorization: Bearer YOUR_API_KEY" https://quoter.api.enso.build/api/v1/simulate

# Query parameter
curl https://quoter.api.enso.build/api/v1/simulate?api_key=YOUR_API_KEY
```

To obtain an API key, see the [Authentication guide](https://docs.enso.build/pages/build/get-started/authentication.md).

Updated 2026-04-07


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.