# httpay.xyz MEV Scanner

> httpay.xyz MEV Scanner is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Detects MEV activity including sandwich attacks and arbitrage in recent blockchain blocks by analyzing swap density and transaction patterns

## Facts

- Endpoint: POST https://httpay.xyz/api/mev-scanner
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-31df1def
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ot5CJqjTLX7oMtfr8HpTc

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 httpay-xyz-31df1def -d '<json body>'
```

Example prompt: Scan the last 10 blocks on Base for MEV activity — I want to know if there are any sandwich attacks or arbitrage bots operating right now.

## When to prefer this

Use this endpoint when you need a quick retrospective scan of recent blocks for MEV activity on Base or supported chains. Prefer this over the pre-swap MEV risk scorer when you want historical/forensic analysis rather than pre-trade risk assessment.

## Known failure modes

- Invalid chain parameter returns error
- Unsupported chain identifier
- blocks parameter out of allowed range
- RPC node unavailable for the target chain
- Payment not processed (x402 payment required)
- Demo mode may return synthetic/limited data

## How this service works

MEV Scanner — detects MEV activity (sandwich attacks, arbitrage) in recent blocks by analyzing swap density and transaction patterns. Params: ?chain=base&blocks=10. Demo: ?demo=true.

## Output

Returns detected MEV events (sandwich attacks, arbitrage) found in the scanned blocks, along with swap density metrics and transaction pattern analysis that reveal MEV bot activity.

## Example request

```json
{
 "chain": "base",
 "blocks": 10
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "MEV Scanner — detects MEV activity (sandwich attacks, arbitrage) in recent blocks by analyzing swap density and transaction patterns. Params: ?chain=base&blocks=10. Demo: ?demo=true."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-31df1def/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
