Skip to content
Fourohtwo

On-chain swap quote on Base

x402-audit.tatschluizguilherme.workers.dev/swap

On-chain swap quote on Base: amountOut for an amountIn of any ERC-20 pair with DEX liquidity — direct pool (Uniswap V3 best liquidity / Aerodrome V2) or WETH route, with spot price, price impact and minOut slippage guards (0.5%/1%), all computed from pool reserves (no market API)

BaseUnchecked
https://x402-audit.tatschluizguilherme.workers.dev/swap

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-audit.tatschluizguilherme.workers.dev/swap");
console.log(await res.json());