# MEV Recent Blocks via Flashbots Relay

> MEV Recent Blocks via Flashbots Relay is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns the last N MEV-Boost-built blocks from the Flashbots relay, including slot, block metadata, builder/proposer pubkeys, gas stats, ETH paid, and tx count.

## Facts

- Endpoint: POST https://agent402.tools/api/mev-recent-blocks
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mev-recent-blocks-via-flashbots-relay-4802232b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a278xkyth_Mb-CSCYwtvi

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 mev-recent-blocks-via-flashbots-relay-4802232b -d '<json body>'
```

Example prompt: Pull the last 50 MEV-Boost blocks from the Flashbots relay so I can see which builders are most active, how much ETH proposers are earning, and the gas usage trends.

## When to prefer this

Use this endpoint when you need real-time or near-real-time data on recent MEV-Boost blocks from the Flashbots relay — especially for monitoring builder market share, proposer revenue trends, gas utilization, or block-by-block MEV activity on Ethereum. Prefer over block explorers when you need structured, machine-readable relay-specific metadata in bulk.

## Known failure modes

- limit out of range (must be 1-100) returns validation error
- Flashbots relay API unavailable causes upstream timeout
- no recent blocks available returns empty list
- invalid request body returns 400 error
- payment not included or insufficient returns 402

## How this service works

Last N MEV-Boost-built blocks via the Flashbots relay. For each block: slot, block number/hash, builder pubkey, proposer pubkey, gas used/limit, ETH paid to the proposer, and tx count. Use to monitor block-builder market share, proposer revenue, or to correlate an arbitrage opportunity with the block it landed in.

## Output

A list of up to 100 recent MEV-Boost-built blocks, each containing: slot number, block number and hash, builder pubkey, proposer pubkey, gas used, gas limit, ETH paid to proposer, and transaction count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "description": "Number of recent blocks (1-100, default 20)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "relay": "flashbots",
  "blocks": [
   {
    "slot": 12345678,
    "numTx": 187,
    "gasUsed": 14987654,
    "gasLimit": 30000000,
    "valueEth": 0.072345,
    "valueWei": "72345000000000000",
    "blockHash": "0xabc...",
    "parentHash": "0xdef...",
    "blockNumber": 22345678,
    "builderShort": "0x90000000…abcdef",
    "builderPubkey": "0x9000...",
    "proposerPubkey": "0xa000...",
    "proposerFeeRecipient": "0x1234..."
   }
  ],
  "avgEthPerBlock": 0.072345,
  "totalEthToProposers": 0.072345
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mev-recent-blocks-via-flashbots-relay-4802232b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
