Skip to main content
Enso Shield 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.

Quick Start

Get a working simulate-then-validate flow in under 5 minutes.

Simulate Transactions

Predict output amounts and gas consumption for any EVM transaction.

Validate Transactions

Verify transaction integrity before signing with per-field validation checks.

Why Shield?

Source-Agnostic

Works with any EVM transaction — Uniswap, Aave, Enso, or your own contracts. No vendor lock-in.

Tamper Detection

Compares every transaction parameter — calldata, target address, sender, value, and chain ID — to detect any modification between simulation and signing.

No Funds Required

Simulate any transaction without needing the actual tokens in your wallet — test before you commit.

Exact Output Prediction

Get the precise amountOut you would receive if the transaction were executed on-chain right now.

How It Works

Simulate

Send your transaction to the /simulate endpoint with tokenIn, tokenOut, and amountIn.You get back: simulationId, amountOut, gas, and status.

Validate

Before signing, send the unsigned transaction with the simulationId to /validate.Shield checks every field — data, to, from, value, chainId — and returns per-field results.

Sign & Submit

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

Base URL

https://shield.api.enso.build

Authentication

Shield 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.
# Bearer token
curl -H "Authorization: Bearer YOUR_API_KEY" https://shield.api.enso.build/api/v1/simulate

# Query parameter
curl https://shield.api.enso.build/api/v1/simulate?api_key=YOUR_API_KEY
To obtain an API key, see the Authentication guide.

Updated