{"uid":"cap_xVM4f6jT4szsd_Wj5fC8E","slug":"halowerk-defiwerk-mev-risk-assessment-ac418ba6","name":"HALOWERK defiwerk MEV Risk Assessment","description":"HALOWERK defiwerk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.","url":"https://defi.netzhandwerker.de/mev/risk","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"route":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Optional pool address to assess instead of the automatically chosen one."},"token_in":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"amount_in":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Input amount in whole token units as a decimal string."},"token_out":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"scan_history":{"type":"boolean","default":true,"description":"Scan past Swap events for actual sandwiches. Costs time; switch off for a faster answer."},"slippage_bps":{"type":"integer","default":50,"maximum":5000,"minimum":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cyRmlPcjSfTptv5O-LUPW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Assesses MEV (sandwich attack) risk for a token swap on EVM chains, scanning historical pool events and slippage to return a risk score.","exampleAgentPrompt":"Before I swap 500 USDC for WETH on Base with 50 bps slippage, can you check the MEV sandwich attack risk for that trade using the defiwerk MEV risk endpoint — scan the pool history too?","exampleUseCases":[{"title":"Pre-trade sandwich risk check","prompt":"I'm about to swap 2000 USDC for DAI on Ethereum — can you assess the MEV sandwich risk for that trade at 30 bps slippage before I submit it?"},{"title":"Pool-specific historical MEV audit","prompt":"Can you run a full historical sandwich scan on pool address 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc on Arbitrum to see how often it's been targeted by MEV bots?"},{"title":"Optimism trade safety evaluation","prompt":"I want to swap 10 WETH for USDC on Optimism with 100 bps slippage — give me the MEV risk assessment for that route so I know if it's safe to proceed."}],"resultDescription":"Returns a structured MEV risk assessment for the specified token swap, including a risk score or rating indicating sandwich attack likelihood, optionally augmented with historical sandwich event data from past Swap events in the relevant pool, along with relevant pool details and risk factors.","failureModes":["Invalid token address format (must be 0x hex, 40 chars) returns a validation error","Unsupported chain value outside the allowed enum returns an error","amount_in not provided as a valid decimal string causes rejection","Payment not completed via x402/USDC returns 402 Payment Required","Pool has insufficient historical data when scan_history is true may return limited results","Network timeouts when scanning large pools with many historical events","Invalid pool address in 'route' field returns validation error"],"whenToPreferThis":"Choose this endpoint when you need on-chain MEV sandwich attack risk quantification for a specific EVM swap before execution, especially when historical pool data matters. It supports Base, Ethereum, Arbitrum, Optimism, and Polygon and accepts precise token addresses and amounts. Prefer this over generic slippage calculators when you want sandwich-attack-specific risk intelligence including historical frequency analysis. It is priced per-call via x402/USDC making it suitable for agentic, automated trading workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:31:20.195Z","isFirstParty":false}