# DeFi Oracle MEV Scanner

> DeFi Oracle MEV Scanner is a paid API for AI agents from defi-oracle-two.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Scans recent blocks on a specified blockchain for MEV (Miner Extractable Value) activity indicators and potential MEV blocks

## Facts

- Endpoint: POST https://defi-oracle-two.vercel.app/api/mev-scan
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-oracle-mev-scanner-01bbf15e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lFpMrB82wzqPW36RKhyTj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability defi-oracle-mev-scanner-01bbf15e -d '<json body>'
```

Example prompt: Scan Ethereum for MEV activity over the last 20 blocks and tell me how many blocks showed signs of sandwich attacks or frontrunning.

## When to prefer this

Use this endpoint when you need on-chain MEV detection for a specific blockchain over a recent block window, especially when you want structured indicator data per block rather than aggregate protocol-level statistics. Prefer this over general block explorers when you need MEV-specific classification and scoring across multiple block types.

## Known failure modes

- Unsupported chain name returns error or empty results
- RPC node unavailability causes timeout or partial data
- Very high block count requests may time out
- Chain parameter missing returns validation error
- Payment failure via x402 blocks the request

## How this service works

DeFi data for AI agents — yield rates, swap routes, IL calculator, liquidation risk, MEV scanner, TVL tracking. Powered by DeFiLlama + on-chain RPC data. Pay with USDC on Base via x402.

## Output

Returns the chain scanned, block range covered, number of blocks analyzed, an array of MEV indicators (e.g. sandwich attacks, frontrunning events, arbitrage patterns), and a count of blocks flagged as potentially containing MEV extraction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "chain"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain to scan"
  },
  "blocks": {
   "type": "number",
   "description": "Number of recent blocks (default 10)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "block_range": {
   "type": "string"
  },
  "blocks_scanned": {
   "type": "number"
  },
  "mev_indicators": {
   "type": "array"
  },
  "potential_mev_blocks": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-oracle-mev-scanner-01bbf15e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-oracle-two.vercel.app](https://www.zero.xyz/host/defi-oracle-two.vercel.app/llms.txt)
