{"uid":"cap_4azfzhgN8QUiOKs6vdle9","slug":"base-swap-1bcc450d","name":"Base Swap","description":"An executable swap on Base, routed by 0x across Uniswap, Aerodrome, Balancer, Curve and more. Returns the transaction for your own wallet to sign, plus the approval step if needed, minimum out, route and fees. We never hold funds. Name tokens as ETH, USDC, WETH, cbBTC, AERO… or a 0x address; buying an unknown token runs a sellability check first and refuses a honeypot unless force=1.","url":"https://402.com.tr/api/x402/base-swap?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["sell","buy","amount","taker"],"properties":{"buy":{"type":"string","description":"Token you buy"},"sell":{"type":"string","description":"Token you sell"},"taker":{"type":"string","description":"Your wallet (signs the swap)"},"amount":{"type":"string","description":"Amount you sell"},"slippage":{"type":"string","description":"Slippage in bps (optional, default 100)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yVCJADb7tUTyEnZ5AkLEp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a token swap on the Base network, routed by 0x across Uniswap, Aerodrome, Balancer, Curve and more, returning a signable transaction with approval steps, minimum output, route, and fees.","exampleAgentPrompt":"Swap 100 USDC for ETH on Base using my wallet 0xAbC...123 — use a 50 bps slippage tolerance and give me the transaction I need to sign.","exampleUseCases":[{"title":"Rebalance DeFi portfolio on Base","prompt":"I want to swap 500 USDC for WETH on Base using my wallet 0xDe1...abc, with default slippage. Give me the transaction to sign so I can rebalance my portfolio."},{"title":"Buy a new Base memecoin safely","prompt":"I found a new token at 0x1234...5678 on Base and want to buy it with 0.05 ETH from my wallet 0xABC...999 — run the honeypot check first and refuse if it's a honeypot."},{"title":"Convert cbBTC back to stablecoins","prompt":"Swap all 0.01 cbBTC for USDC on Base from my wallet 0xF00...bar, route it through the best available DEX and show me the minimum I'll receive and the fees."}],"resultDescription":"Returns a signable swap transaction (and approval transaction if needed), the minimum output amount, the full DEX route used, protocol fees, and — for unknown tokens — a sellability/honeypot check result. The caller signs and broadcasts the transaction themselves; no funds are held by the service.","failureModes":["Honeypot detected: token fails sellability check and force=1 not set — swap refused","Invalid token symbol or address: unrecognized token name not resolvable on Base","Insufficient liquidity: no viable route found across supported DEXes","Slippage too tight: market moved beyond the specified bps tolerance","Invalid taker address: malformed wallet address provided","Amount too small: below minimum viable swap threshold for routing"],"whenToPreferThis":"Choose this endpoint when you need a ready-to-sign swap transaction on the Base L2 network with automatic DEX aggregation across Uniswap, Aerodrome, Balancer, and Curve. It is particularly valuable when buying unknown tokens because it runs a honeypot/sellability check automatically. Prefer it over generic Ethereum swap APIs when targeting Base specifically, and over manual DEX calls when you want optimal routing without building your own aggregation logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:31:12.759Z","isFirstParty":false,"canonicalSlug":"base-swap-1bcc450d"}