{"uid":"cap_kkfYRpfJad9iBVPnQaCNT","slug":"chainray-mev-detection-e6df09fa","name":"ChainRay MEV Detection","description":"The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.","url":"https://chainray.online/mev-detect/%7BtxHash%7D","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["txHash"],"properties":{"chain":{"type":"string","description":"Blockchain network"},"txHash":{"type":"string","description":"Transaction hash"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2AqMyKuTSjiMFD8xEhuYo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects Miner Extractable Value (MEV) activity for a given blockchain transaction hash, identifying sandwich attacks, front-running, arbitrage, and other MEV patterns.","exampleAgentPrompt":"Check if this Ethereum transaction was hit by a sandwich attack or any other MEV — the tx hash is 0xa1b2c3d4e5f6...7890 on mainnet.","exampleUseCases":[{"title":"Investigate suspicious DEX swap losses","prompt":"I just swapped tokens on Uniswap and got way less output than expected — can you check if my transaction was front-run or sandwiched? Here's the hash: 0x8f3c2a1d4e9b5c7f6a3e2d1b0c9f8a7e6d5c4b3a"},{"title":"Monitor MEV attacks across portfolios","prompt":"I want to track whether any of my recent trades across different chains got exploited by MEV bots. Can you analyze these transaction hashes and tell me which ones had sandwich attacks or front-running: 0x1234... 0x5678... 0x9abc..."},{"title":"Validate DeFi protocol security audits","prompt":"We're auditing a DeFi protocol's transaction history for MEV vulnerabilities. Can you scan through these 10 transaction hashes and identify which ones show signs of arbitrage extraction or sandwich attacks, then summarize the total MEV damage?"}],"resultDescription":"Returns MEV detection results for the given transaction, including whether MEV was detected, the type of MEV activity (e.g. sandwich attack, front-running, arbitrage), profit extracted by the MEV bot, and addresses of the attacker and victim.","failureModes":["Invalid or malformed transaction hash returns 400 error","Transaction not found on specified chain returns 404","Unsupported chain identifier returns 400","Rate limit exceeded returns 429","Payment not provided or insufficient returns 402"],"whenToPreferThis":"Use this endpoint when you need to determine whether a specific on-chain transaction was subject to MEV exploitation — especially sandwich attacks or front-running — on any of 46 supported chains. Prefer this over generic block explorers when you need structured, machine-readable MEV classification rather than raw transaction data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:07.360Z","isFirstParty":false}