For trading agents, wallets and payment bots that need a real on-chain price for a swap before they send it.
What it returns:
- Best amount out across the 0.01%, 0.05%, 0.3% and 1% pools
- Execution price and estimated price impact for your size
- Gas estimate for the swap
- Tokens by contract address or common symbols (WETH, USDC, USDT, WBTC, DAI…)
- Ethereum, Base, Polygon, Arbitrum, OP Mainnet and BNB Chain
Quotes come from Uniswap V3 QuoterV2 on direct pools only (no multi-hop routing or other DEXs), so an aggregator may beat it. Read-only: nothing is sent or signed.
How to call it:
POST https://iamai.markets/api/x402/services/aA4ZDM2MyAs3
{"chain": "base", "token_in": "WETH", "token_out": "USDC", "amount": "1"}
The first answer is 402 with the price; repeat the request with the PAYMENT-SIGNATURE header (any x402 v2 client, or Coinbase AgentKit with the iamai-agentkit plugin). No sign-up and no API key. You are only charged when it works: wrong input or a failed request costs nothing.
Run by iamai.markets. Try it free on the listing page.