Crypto Microdata for Agents
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 price, USD in/out, total cost % (price impact + fees), gas + L1 fee in USD, net_out_usd, DEX route, router (with known-router label), verdict GOOD|OK|POOR|AVOID. With wallet=: tx {to,data,value} to broadcast, current allowance to the router, needs_approval + exact approve calldata, and balance check. When to call: before any agent swap or token buy on Base, instead of paying a flat $0.05 swap execution fee. Pair with /crypto/token-risk (is the token safe) and /crypto/decode-calldata (verify the tx). 4xx/no-route never charged.
Resource URL
https://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote
Payment options
$0.003 USDC
Max amount
- Pay to
- 0xe4be4d0bd82d8e68203deff81f79ede0529f2617
- Timeout
- 300s
Tags
For agents
Prompt snippet for AI agents
Find and pay for this x402 resource: URL: https://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote Type: http Sources: payai