{"uid":"cap_-hYcEivxUa3LWJFUHLFL6","slug":"httpay-xyz-c0c9ab62","name":"MEV Sandwich Risk Scorer","description":"Pre-swap MEV sandwich risk scoring. Params: ?tokenIn=0x...&tokenOut=0x...&amountUsd=1000&dex=uniswap. Returns riskScore 0-100, verdict LOW/MEDIUM/HIGH, and mitigation factors. Uses GoPlus + DexScreener.","url":"https://httpay.xyz/api/mev-risk","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Pre-swap MEV sandwich risk scoring. Params: ?tokenIn=0x...&tokenOut=0x...&amountUsd=1000&dex=uniswap. Returns riskScore 0-100, verdict LOW/MEDIUM/HIGH, and mitigation factors. Uses GoPlus + DexScreener."}},"example":{"request":{"dex":"uniswap","tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","amountUsd":1000},"response":{"meta":{"x402":true,"poweredBy":"Alfred Zhang 🫡"},"inputs":{"dex":"uniswap","tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","amountUsd":1000},"factors":[{"name":"Pool Liquidity","detail":"$85,865,291 deep pool; ~0.001% price impact — negligible","weight":"low"},{"name":"MEV Activity Level","detail":"V/L ratio 0.59 — elevated, pool is popular with bots","weight":"medium"},{"name":"Pool Age","detail":"Pool is 1863 days old — established","weight":"low"},{"name":"DEX","detail":"Uniswap V3 — heavily monitored by MEV searchers; use private RPC","weight":"medium"},{"name":"Token Security (0xc02aaa...)","detail":"GoPlus data unavailable — cannot assess token tax/honeypot risk","weight":"medium"},{"name":"Token Security (0xa0b869...)","detail":"GoPlus data unavailable — cannot assess token tax/honeypot risk","weight":"medium"}],"verdict":"MEDIUM","poolData":{"poolCount":10,"poolAddress":"0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640","liquidityUsd":85865291,"volume24hUsd":51069102,"priceImpactPct":0.001},"scoredAt":"2026-06-12T03:58:25.261Z","riskScore":63,"dataSource":"GoPlus Security API + DexScreener","recommendation":"MEDIUM risk: Consider using a private mempool endpoint (MEVBlocker.io or Flashbots Protect). Set slippage to the minimum necessary. For trades >$10,000 use a DEX aggregator."}},"exampleRequest":{"dex":"uniswap","tokenIn":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","tokenOut":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","amountUsd":1000},"tags":["x402"],"displayCostAmount":"0.01","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.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_QUVAmLhyKwSE2mbb8NXcT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores the MEV sandwich attack risk for a proposed token swap, returning a 0-100 risk score, a LOW/MEDIUM/HIGH verdict, and mitigation factors","exampleAgentPrompt":"Before I swap $1000 USDC for WETH on Uniswap, what's the MEV sandwich risk? My tokenIn is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and tokenOut is 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2.","exampleUseCases":null,"resultDescription":"Returns a numerical riskScore from 0 to 100, a categorical verdict of LOW, MEDIUM, or HIGH indicating sandwich attack likelihood, and a list of mitigation factors the trader can apply to reduce MEV exposure for the proposed swap.","failureModes":["Invalid or unrecognized token contract addresses return an error","Unsupported DEX name results in a validation error","Missing required parameters (tokenIn, tokenOut, amountUsd, dex) return a 400 bad request","GoPlus or DexScreener upstream service unavailability causes 503 errors","Very low-liquidity or newly created tokens may return incomplete risk data","Payment failure via x402 protocol returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an agent needs to assess MEV sandwich attack risk before executing a DeFi token swap, especially for larger trade sizes on popular DEXes like Uniswap where front-running is common. Prefer this over generic token safety checkers when the specific concern is sandwich attacks and pre-trade MEV exposure rather than token contract fraud or rug pull risk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:55:30.527Z","isFirstParty":false}