{"uid":"cap_44PURYjv_bPpMdM8uPFBz","slug":"saferoute-base-dex-swap-quote-b6e0e2cd","name":"SafeRoute Base DEX Swap Quote","description":"Buy a safety-checked Base DEX swap quote for USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, or AERO. Returns unsigned calldata or a buyer-signable gasless payload; SafeRoute never holds funds, signs, or broadcasts.","url":"https://api.usesaferoute.com/v1/quote","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string","description":"Approved Base buy-token symbol"},"from":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string","description":"Approved Base sell-token symbol"},"amount":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$","description":"Human-readable sell amount, capped at $500 USDC equivalent"},"wallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Buyer-controlled taker wallet"},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"executionMode":{"enum":["standard","gasless"],"type":"string","default":"standard"},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}}},"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_2PEmFCNqvtuER79Dh88t1","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":"Returns a safety-checked DEX swap quote on Base for approved token pairs, delivering unsigned calldata or a gasless signable payload without holding or broadcasting funds.","exampleAgentPrompt":"Get me a SafeRoute safety-checked swap quote to buy WETH using 200 USDC from my wallet 0xAbC1234567890AbC1234567890AbC1234567890Ab on Base — use standard execution mode.","exampleUseCases":[{"title":"Agent-automated USDC to ETH rebalance","prompt":"I want to swap 150 USDC into WETH from my wallet 0x1111111111111111111111111111111111111111 on Base — give me a standard swap quote so I can sign it myself."},{"title":"Gasless cbBTC purchase for DeFi bot","prompt":"Get me a gasless swap quote to buy cbBTC using 500 USDC from wallet 0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF — I want a payload I can sign without paying gas separately."},{"title":"AERO token acquisition price check","prompt":"How much AERO can I get for 75 USDC from my wallet 0xABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD on Base? Give me the standard quote with calldata so I can review it before executing."}],"resultDescription":"Returns a swap quote containing either unsigned calldata (standard mode) or a buyer-signable gasless payload (gasless mode), along with the exchange rate and routing details for the requested token pair on Base. The service never holds funds, signs transactions, or broadcasts to the network.","failureModes":["Unsupported token pair — only the seven approved symbols (USDC, WETH, EURC, CBETH, CBBTC, VIRTUAL, AERO) are accepted","Sell amount exceeds $500 USDC equivalent cap — request will be rejected","Invalid wallet address format — must be a valid 40-hex-character 0x address","Insufficient liquidity for the requested pair or amount at quote time","Payment failure — $0.01 USDC per call via x402 protocol must succeed before quote is returned","Invalid intentId or referralCode format — must match required pattern and length"],"whenToPreferThis":"Choose SafeRoute when you need a safety-audited Base DEX swap quote for the approved token set (USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, AERO) and want the assurance that the service never custodies funds or broadcasts transactions. Prefer it for agentic workflows where the agent needs to obtain calldata or a gasless payload for the user to sign independently, especially when operating within the $500 USDC per-swap limit on Base mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:37:06.928Z","isFirstParty":false}