{"uid":"cap_MgnrSzNBLu_AFHxHFkMQ5","slug":"x402-dexter-cash-a3916375","name":"Dexter Slippage Sentinel","description":"Slippage Sentinel analysis","url":"https://x402.dexter.cash/api/slippage/sentinel?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["ExactIn","ExactOut"],"type":"string","description":"Swap direction passed to Jupiter (default ExactIn)."},"token_in":{"type":"string","description":"Input mint (defaults to SOL). Provide a 32-byte mint address."},"amount_in":{"type":"string","description":"Optional atomic trade size. Overrides amount_in_ui when provided."},"token_out":{"type":"string","description":"Output mint to analyze. Blank uses the Donica Lewinsky (DONICA) mint."},"route_hint":{"type":"string","description":"Optional label for diagnostics grouping (defaults to diagnostics)."},"amount_in_ui":{"type":"number","description":"UI trade size (e.g. 10 for 10 SOL). Used when amount_in is omitted."},"amount_in_decimals":{"type":"integer","description":"Token decimals for amount_in_ui. Required when amount_in_ui is used."}}},"responseSchema":{"ok":{"type":"boolean","description":"True when the slippage analysis succeeded."},"error":{"type":"string","description":"Error code when ok=false (e.g. slippage_timeout)."},"result":{"type":"object","properties":{"poolDepths":{"type":"array","description":"Per-amm depth analysis (route contribution, in/out amounts, USD value)."},"diagnostics":{"type":"object","description":"Metadata (input USD, stress multipliers, quote slot, evaluated timestamp)."},"minSafeSlipBps":{"type":"number","description":"Recommended minimum slippage buffer in bps."},"recentTradeSizeP95":{"type":"object","description":"Recent trade size distribution (p95) used for stress tests."},"candidateEvaluations":{"type":"array","description":"Evaluated slippage candidates with pass/fail results."}},"description":"Detailed slippage analysis including candidate evaluations and pool depth snapshots."},"status":{"type":["integer","null"],"description":"Upstream or timeout HTTP status when ok=false."},"amountRaw":{"type":"string","description":"Atomic trade size forwarded to Jupiter (in token_in units)."},"amountDerivedFromUi":{"type":"boolean","description":"true if amount_in_ui/decimals were used to derive amountRaw."}},"example":{"request":{"dex":"Raydium","tokenIn":"EPjFWdd5Au57nKisPQs46fqV7aSGstB76oj3SP6SucUt","amountIn":"100000000","tokenOut":"So11111111111111111111111111111111111111112","tradeDirection":"ExactIn"},"response":{"ok":true,"result":{"poolDepths":[{"amm":"Pump.fun Amm","ammKey":"Ah1mk4SNHyKHFKHid7eK7TU9SFW9S53GhMePjNnqm1Fs","usdValue":820.9216041697072,"feeAmount":null,"inputMint":"So11111111111111111111111111111111111111112","inAmountUi":10,"outputMint":"6Vik7Zf4biqGXZbpm8DCZUtvJQvTvc2vAhTx6yNupump","inAmountRaw":"10000000000","outAmountUi":199514798.820686,"outAmountRaw":"199514798820686","routeShareBps":null}],"diagnostics":{"inputUsd":820.9216041697072,"evaluatedAt":"2026-05-29T21:06:48.393Z","tradeUsdP95":null,"inputAmountUi":10,"quoteContextSlot":null,"stressMultiplier":1,"tradeSampleCount":0,"volatilityBufferBps":45,"worstObservedImpactBps":0,"tradeSampleInsufficient":true,"tradeSampleUsedFallback":true,"tradeSampleWindowSeconds":21600,"requestedTradeWindowSeconds":900},"minSafeSlipBps":1000,"recentTradeSizeP95":{"sampleCount":0,"usdAmountP95":null,"tokenAmountP95":null,"usedFallbackWindow":true,"insufficientSamples":true,"evaluatedWindowSeconds":21600,"requestedWindowSeconds":900},"candidateEvaluations":[{"passes":false,"slippageBps":200,"priceImpactBps":23.379731783274146,"requirementBps":null,"volatilityBufferBps":45,"stressPriceImpactBps":23.379731783274146},{"passes":false,"slippageBps":400,"priceImpactBps":23.379393090505843,"requirementBps":null,"volatilityBufferBps":45,"stressPriceImpactBps":23.379393090505843},{"passes":false,"slippageBps":800,"priceImpactBps":23.37969495861925,"requirementBps":null,"volatilityBufferBps":45,"stressPriceImpactBps":23.37969495861925},{"passes":false,"slippageBps":1000,"priceImpactBps":23.37969495861925,"requirementBps":null,"volatilityBufferBps":45,"stressPriceImpactBps":23.37969495861925}]},"amountRaw":"10000000000","_x402_sponsored":[{"method":"GET","sponsor":"x402gle","description":"Before you trust that wallet — pull its x402gle wash-detection case file.","resourceUrl":"https://api.x402gle.com/trust/wallet/"}],"amountDerivedFromUi":true}},"exampleRequest":{"dex":"Raydium","tokenIn":"EPjFWdd5Au57nKisPQs46fqV7aSGstB76oj3SP6SucUt","amountIn":"100000000","tokenOut":"So11111111111111111111111111111111111111112","tradeDirection":"ExactIn"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XVz_2uLHBz9_B7-_-YsdV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes safe swap slippage in basis points for ExactIn or ExactOut trades on Solana DEXes, returning pool depth, price impact, and minimum safe slippage recommendations.","exampleAgentPrompt":"What's the minimum safe slippage in basis points for an ExactIn swap of 1,000,000,000 raw USDC (tokenIn EPjFWdd5Au57nKisPQs46fqV7aSGstB76oj3SP6SucUt) to SOL (So11111111111111111111111111111111111111112) on Raydium right now?","exampleUseCases":[{"title":"Large token swap safety check","prompt":"I'm about to swap 500k USDC for SOL on Jupiter. What's a safe slippage setting so I don't get hammered by price impact?"},{"title":"Low-liquidity pool risk assessment","prompt":"Before I execute this trade on Pump.fun, can you check how deep the pool is and tell me what slippage cushion I need to protect against volatility?"},{"title":"ExactOut trade execution planning","prompt":"I need to receive exactly 100 SOL. What slippage should I set on Raydium to make sure this ExactOut trade goes through safely without too much price impact?"}],"resultDescription":"Returns a JSON object with ok status, pool depth breakdown per AMM (USD value, in/out amounts, AMM key), diagnostics (input USD value, stress multiplier, volatility buffer bps, worst observed price impact bps, trade sample count and window), minimum safe slippage in basis points (minSafeSlipBps), 95th-percentile recent trade size stats, and candidate slippage evaluations for the requested trade.","failureModes":["Invalid or unsupported DEX name — service may return ok:false or error","Unknown token mint address — quote context unavailable","Insufficient trade sample data — falls back to wider window or default slippage","Amount too small or too large for meaningful pool depth analysis","Payment not provided or invalid x402 payment — 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a data-driven, per-trade slippage recommendation for Solana DEX swaps, especially for large trades where price impact matters. Prefer this over static slippage defaults when trading on volatile or low-liquidity pools, or when you need diagnostics like pool depth, volatility buffer, and worst observed impact to decide whether a swap is safe to execute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:44:13.829Z","isFirstParty":false,"canonicalSlug":"x402-dexter-cash-a3916375"}