Base DEX Swap Quote (Best-Route) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).
Returns the best-route swap quote on Base for any token pair, with optional ready-to-sign calldata and wallet approval checks, aggregating 100+ DEX pools via KyberSwap and OpenOcean.
Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.
Returns a JSON object containing: input and output token metadata (symbol, address, decimals), amount in and out (human units), USD valuations for both sides, net USD output after gas, gas cost in USD, L1 fee in USD, routing details (route array, hops, router address and label, source DEX), slippage in bps, min out amount, a GOOD/BAD/NEUTRAL verdict, cost percentage, and a human-readable guidance string. When wallet is provided, also includes ready-to-sign transaction calldata and wallet allowance/balance status.
GEThttps://kr-x402-mvp.kgy5612.workers.dev/crypto/swap-quote?utm_source=zero.xyzChoose this endpoint when you need a best-execution swap quote specifically on the Base L2 network, especially when you need ready-to-sign calldata for a wallet (not just a price estimate). It aggregates 100+ Base DEX pools via KyberSwap meta-aggregator with OpenOcean fallback, making it superior to single-DEX price queries. Ideal for AI agents executing or planning onchain trades on Base with USDC, ETH, WETH, cbBTC, DAI, AERO, DEGEN, BRETT, or VIRTUAL. Prefer this over generic price feeds when you need routing details, gas estimates, slippage tolerance, wallet approval checks, and actionable transaction data in a single call.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"to": {
"symbol": "WETH",
"address": "0x4200000000000000000000000000000000000006",
"decimals": 18
},
"from": {
"symbol": "USDC",
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"decimals": 6
},
"hops": 1,
"chain": "base",
"price": 2224.6,
"route": [
"pmm-2"
],
"router": "0x6131b5fae19ea4f9d964eac0408e4408b66337b5",
"source": "kyberswap",
"gas_usd": 0.0319,
"min_out": 0.00447272,
"verdict": "GOOD",
"cost_pct": -0.73,
"guidance": "Good fill. Pass wallet= for ready-to-sign calldata; verify it with /crypto/decode-calldata before signing.",
"amount_in": 10,
"amount_out": 0.0044952,
"l1_fee_usd": 0.0015,
"net_out_usd": 10.0153,
"router_label": "KyberSwap MetaAggregation Router v2",
"slippage_bps": 50,
"amount_in_usd": 9.976,
"amount_out_usd": 10.0487
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"