{"uid":"cap_s_YQWEShH-ywmSXzptTkK","slug":"x402-slippage-recommendation-api-cdffd491","name":"x402 Slippage Recommendation API","description":"Recommended max slippage for a planned swap based on live price impact plus a buffer, with a rating. Send { chain, tokenIn, tokenOut, amountIn }. Avoid failed txns and overpaying on slippage.","url":"https://x402-services-production.up.railway.app/api/exec/slippage","method":"POST","headers":{},"bodySchema":{"type":"object","required":["amountIn","tokenIn","tokenOut"],"properties":{"chain":{"type":"string","description":"Chain, default base"},"tokenIn":{"type":"string","description":"0x token to sell"},"amountIn":{"type":"string","description":"Amount in smallest units"},"tokenOut":{"type":"string","description":"0x token to buy"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Df6a4vgTBQjA_Z9K_8GP9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a recommended maximum slippage tolerance for a planned token swap, based on live price impact analysis plus a safety buffer, with a quality rating.","exampleAgentPrompt":"Before I swap 5000000000 units of 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 for 0x4200000000000000000000000000000000000006 on Base, what max slippage should I set to avoid a failed transaction or overpaying?","exampleUseCases":null,"resultDescription":"Returns a recommended maximum slippage percentage for the planned swap, derived from live price impact calculation plus a safety buffer, along with a rating (e.g. low/medium/high risk) to help the agent decide whether to proceed and what slippage cap to pass to the DEX router.","failureModes":["Unsupported chain returns an error or defaults to Base","Invalid or unrecognized token addresses return a lookup failure","Very illiquid token pairs may return high uncertainty or no result","amountIn of zero or malformed amount returns a validation error","Network or oracle unavailability causes a timeout or 503 response"],"whenToPreferThis":"Use this endpoint when an agent is about to execute a token swap and needs to determine a safe slippage tolerance dynamically rather than using a hardcoded value. It is especially valuable for large trades, illiquid pairs, or volatile market conditions where a static 0.5% or 1% slippage setting would cause frequent failures or MEV losses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-08-08T19:08:48.732Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:20.781Z","isFirstParty":false}