Skip to content
Fourohtwo

How much will I get, and what do I sign

kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote

How much will I get, and what do I sign? Best-route swap quote on Base for any token pair: from=USDC|ETH|WETH|cbBTC|DAI|AERO|DEGEN|BRETT|VIRTUAL or 0x.. &to=..&amount=10 (human units) [&wallet=0x.. for ready-to-sign calldata + approval check] [&slippage_bps=50]. Aggregates 100+ Base DEX pools (KyberSwap meta-aggregator, OpenOcean fallback). Returns amount_out, min_out after slippage, effective pri

BaseAnswering
GEThttps://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote

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

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://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote?to=WETH&from=USDC&amount=10");
console.log(await res.json());

Example input

{
  "to": "WETH",
  "from": "USDC",
  "amount": "10"
}

More from Crypto Microdata for Agents