{"uid":"cap_WDAPPC5W9jJyDoBsDndtw","slug":"api-relai-fi-8a0acd62","name":"RelAI MEV Detection","description":"Detect MEV (Maximal Extractable Value) attacks and sandwich trades. Supported chains: ethereum, base, bsc, arbitrum, polygon. Default chain: ethereum. Required params: none (chain/limit/timeperiod are optional and defaulted).","url":"https://api.relai.fi/relay/1769629274857/x402/bitquery/mevdetection","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum","bsc","arbitrum","polygon","optimism","solana"],"type":"string","description":"Blockchain to query (e.g., base, ethereum, bsc, solana)"},"limit":{"type":"string","description":"Maximum number of results to return (default: 10, max: 500)"},"timeperiod":{"enum":["1h","4h","24h","7d","30d"],"type":"string","description":"Time period for analysis (e.g., 1h, 24h, 7d, 30d)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.6","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":{"p10Cents":"60.0000","medianCents":"60.0000","p90Cents":"60.0000","minCents":"60.0000","maxCents":"60.0000","p95Cents":"60.0000","sampleCount":1,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bAIuOMiRELUwPMtSkURze","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and analyzes MEV activity including sandwich attacks, front-running, and toxic flow across major blockchains using AI-powered analysis.","exampleAgentPrompt":"Can you check this Ethereum transaction 0xabc123... for MEV activity — specifically whether it was sandwiched or front-run, and give me an AI-powered breakdown of any toxic flow involved?","exampleUseCases":null,"resultDescription":"Returns a structured analysis report identifying detected MEV activity types (sandwich attack, front-running, toxic flow), confidence scores, involved addresses, and an AI-generated explanation of the malicious behavior observed.","failureModes":["Invalid transaction hash returns 400 error","Unsupported chain returns error or empty result","Transaction not yet indexed returns no data","Rate limiting or payment failure returns 402 or 429","Ambiguous input parameters return partial or empty analysis"],"whenToPreferThis":"Use this endpoint when you need AI-powered MEV detection with multi-chain support and detailed classification of attack types (sandwich, front-running, toxic flow). Prefer this over generic block explorers or raw Bitquery queries when you need an actionable, interpreted result rather than raw transaction data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:57:07.077Z","isFirstParty":false}