{"uid":"cap_EobESQpJAnVobLsXZwSon","slug":"saferoute-swap-safety-check-655106cb","name":"SafeRoute Swap Safety Check","description":"Check whether an approved Base token swap is eligible before supplying a wallet. Returns verified token contracts, indicative output, liquidity sources, fee estimate, warnings, and the exact next action. No custody, signing, or execution.","url":"https://saferoute-x402-production.up.railway.app/v1/swap-safety-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string","description":"Approved Base buy-token symbol; must differ from from"},"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"},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1esuy4DsRCjQ9CYF8yI75","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-validates a Base DEX token swap for safety, returning verified contracts, indicative output amount, liquidity sources, fee estimate, warnings, and the exact next action — without executing the swap.","exampleAgentPrompt":"Before I approve anything, run a safety check on swapping 200 USDC for WETH on Base — I want to see verified contracts, the indicative output, any warnings, and what fees to expect.","exampleUseCases":[{"title":"Pre-flight check before DEX swap","prompt":"I'm about to swap 150 USDC for CBBTC on Base — can you safety-check that route first and tell me if there are any warnings, what the fee looks like, and what the indicative output would be?"},{"title":"Agent guarding wallet before signing","prompt":"My agent is about to execute a swap of 50 WETH to USDC on Base — validate this swap is safe, confirm the token contracts are legit, and give me the exact next action before I let it sign anything."},{"title":"Comparing swap routes for best safety","prompt":"I want to swap 300 USDC into AERO on Base — run a safety check and show me the liquidity sources and any red flags so I can decide whether to proceed."}],"resultDescription":"Returns verified token contract addresses for both sell and buy tokens, an indicative output amount for the trade, the liquidity sources that will be used, an estimated fee, any warnings or risk flags detected, and the precise next action the agent or user should take. No signing, custody, or execution occurs.","failureModes":["Unsupported token pair — if either from or to symbol is not in the approved enum list, the request is rejected","Amount exceeds cap — sell amount above the $500 USDC equivalent limit returns an error","Invalid amount format — non-numeric or incorrectly formatted amount string fails schema validation","Insufficient liquidity — route may return a warning or no valid route if liquidity is too low","Payment failure — x402 micropayment of $0.001 USDC not fulfilled results in a 402 response","Missing required fields — omitting from, to, or amount returns a validation error"],"whenToPreferThis":"Choose this endpoint when an agent or user needs to pre-validate a Base DEX swap before committing a wallet signature — especially when safety, contract verification, and warning detection are priorities. It is ideal for agentic workflows where an automated system must confirm swap legitimacy before proceeding to execution. Prefer this over going directly to execution endpoints when the swap involves untrusted routes, unfamiliar tokens, or when a human-in-the-loop review step is required. Only covers the seven approved Base tokens (USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, AERO) and amounts up to $500 USDC equivalent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:37:52.263Z","isFirstParty":false}