Skip to content
Fourohtwo

x402-web3-fin-gateway.vercel.app/api/v1/dex-quote-impact

Queries live on-chain Uniswap V3 pools (`slot0()`, `liquidity()`, and `QuoterV2.quoteExactInputSingle`) across all 4 fee tiers (`1bp`, `5bp`, `30bp`, `100bp`) on Base, Arbitrum, Ethereum, and Celo. Computes exact mid-market spot price, executable `amountOut`, pure price impact in bps, optimal fee tier, and sandwich-safe `minAmountOut` bounds.

BaseAnswering
POSThttps://x402-web3-fin-gateway.vercel.app/api/v1/dex-quote-impact

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-web3-fin-gateway.vercel.app/api/v1/dex-quote-impact", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"base","tokenIn":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amountIn":"100","tokenOut":"0x4200000000000000000000000000000000000006","slippageBps":50}),
});
console.log(await res.json());

Example input

{
  "chain": "base",
  "tokenIn": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "amountIn": "100",
  "tokenOut": "0x4200000000000000000000000000000000000006",
  "slippageBps": 50
}