{"slug":"api-fadeandco-workers-dev-api-agent-intel-mev-sandwich-risk-b80dc9","title":"Theoretical sandwich-attack profit for a swap of a given size in one DEX pool, a","host":"api.fadeandco.workers.dev","method":"GET","resource":"https://api.fadeandco.workers.dev/api/agent-intel/mev-sandwich-risk-analyzer","category":"commerce","description":"Theoretical sandwich-attack profit for a swap of a given size in one DEX pool, at the pool's current reserves (DexScreener) and the swap's slippage tolerance: the largest front-run that still lets the victim's trade succeed, and the profit it would give. Constant-product pools only, no mempool view,","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:5042","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount":"10000","chain":"base","feePct":"0.3","pair":"0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d","side":"sell","slippagePct":"1"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"amount":{"description":"Victim's input amount in that token's units","type":"string"},"chain":{"description":"DexScreener chain name, e.g. base, ethereum (default base)","type":"string"},"feePct":{"description":"Pool fee in percent, 0 to 5 (default 0.3)","type":"string"},"pair":{"description":"Pool (pair) address","type":"string"},"side":{"description":"sell = victim gives base token; buy = victim gives quote token (default sell)","type":"string"},"slippagePct":{"description":"Victim's slippage tolerance in percent, 0 to 50 (default 1)","type":"string"}},"required":["pair","amount"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Theoretical sandwich-attack profit for a swap of a given size in one DEX pool, at the pool's current reserves (DexScreener) and the swap's slippage tolerance: the largest front-run that still lets the victim's trade succeed, and the profit it would give. Constant-product pools only, no mempool view, no competing bots: a worst-case estimate, not a prediction. Suggests a slippage tolerance.","last_updated":"2026-10-23T19:05:19.478Z","schemes":["exact"]}