# Blockscout Main Page Blocks Endpoint

> Blockscout Main Page Blocks Endpoint is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-10).

Returns the latest blocks on a specified blockchain network via Blockscout's multichain explorer API

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/main-page/blocks
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-main-page-blocks-endpoint-2d5a7d2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aZfnS94dOIKvOgIcPnTnj

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 blockscout-main-page-blocks-endpoint-2d5a7d2b
```

Example prompt: Pull up the latest blocks on Arbitrum from Blockscout so I can see recent block heights, transaction counts, and gas usage.

## When to prefer this

Choose this endpoint when you need a real-time snapshot of the most recent blocks on a specific blockchain network supported by Blockscout. It is ideal for monitoring block production, inspecting gas metrics, or building dashboards that display chain activity. Prefer it over raw node RPC calls when you want pre-parsed, structured block data across multiple chains without running your own infrastructure.

## Known failure modes

- Invalid or unsupported chain_id returns 404 or empty result
- Network timeout if the target chain's node is unreachable
- Rate limiting or 402 payment required if USDC payment not provided
- Malformed path parameter results in a 400 Bad Request
- Chain-specific fields (e.g. Arbitrum fields) absent when querying non-Arbitrum chains

## How this service works

Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data

## Output

Returns an array of recent block objects, each containing block hash, height, size, type, miner details, nonce, rewards, gas used, gas limit, timestamp, burnt fees, base fee per gas, transaction fees, transaction count, internal transaction count, withdrawals count, difficulty, parent hash, uncles hashes, gas used percentage, burnt fees percentage, gas target percentage, and chain-specific fields (e.g. Arbitrum batch info). Useful for understanding the current state of a blockchain network.

## Request schema (JSON Schema)

```json
{
 "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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "chain_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": [
  {
   "hash": "string",
   "size": 0,
   "type": "string",
   "miner": {},
   "nonce": "string",
   "height": 0,
   "rewards": [
    {
     "type": "string",
     "reward": "string"
    }
   ],
   "arbitrum": {
    "status": "string",
    "send_root": "string",
    "send_count": 0,
    "batch_number": 0,
    "l1_block_number": 0,
    "delayed_messages": 0,
    "batch_data_container": "string",
    "commitment_transaction": {
     "hash": "string",
     "status": "string",
     "timestamp": "string"
    },
    "confirmation_transaction": {
     "hash": "string",
     "status": "string",
     "timestamp": "string"
    }
   },
   "gas_used": "string",
   "gas_limit": "string",
   "timestamp": "string",
   "burnt_fees": "string",
   "difficulty": "string",
   "parent_hash": "string",
   "priority_fee": "string",
   "uncles_hashes": [
    {
     "hash": "string"
    }
   ],
   "base_fee_per_gas": "string",
   "total_difficulty": "string",
   "transaction_fees": "string",
   "is_pending_update": true,
   "withdrawals_count": 0,
   "transactions_count": 0,
   "gas_used_percentage": 0,
   "burnt_fees_percentage": 0,
   "gas_target_percentage": 0,
   "internal_transactions_count": 0
  }
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-main-page-blocks-endpoint-2d5a7d2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockscout.com](https://www.zero.xyz/host/api.blockscout.com/llms.txt)
