# Blockscout Chain Stats - Main Page Metrics

> Blockscout Chain Stats - Main Page Metrics 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 aggregate blockchain statistics for a specific chain including total blocks, addresses, transactions, average block time, and daily transaction charts

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/stats-service/api/v1/pages/main
- 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-chain-stats-main-page-metrics-6be61399
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jDVxdFZZxO3RKF44Kodth

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-chain-stats-main-page-metrics-6be61399
```

Example prompt: Can you pull the main blockchain stats for the Base chain using Blockscout — I want to see total blocks, total transactions, average block time, and how many new transactions happened yesterday?

## When to prefer this

Use this endpoint when you need a high-level summary of blockchain health and activity for a specific chain indexed by Blockscout — particularly when you want aggregate counters (blocks, addresses, transactions) plus a daily transaction chart in a single call. Prefer this over transaction-specific or address-specific endpoints when the goal is a dashboard-style overview rather than granular on-chain data.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Chain ID not recognized by Blockscout returns 404 or empty data
- Stats service temporarily unavailable returns 5xx
- Some chart data points marked as is_approximate=true when real-time data is incomplete
- OP Stack fields absent for non-OP Stack 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

A JSON object containing labeled stat cards (id, title, units, value, description) for total blocks, total addresses, average block time, total transactions, yesterday's transactions, and operational transactions, plus time-series chart arrays for daily new transactions (with date, value, date_to, and is_approximate fields). OP Stack chains also include op_stack-prefixed variants of operational transaction metrics.

## 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": {
  "total_blocks": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "total_addresses": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "average_block_time": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "total_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "daily_new_transactions": {
   "info": {
    "id": "string",
    "title": "string",
    "units": "string",
    "description": "string",
    "resolutions": [
     "string"
    ]
   },
   "chart": [
    {
     "date": "string",
     "value": "string",
     "date_to": "string",
     "is_approximate": true
    }
   ]
  },
  "yesterday_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "total_operational_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "daily_new_operational_transactions": {
   "info": {
    "id": "string",
    "title": "string",
    "units": "string",
    "description": "string",
    "resolutions": [
     "string"
    ]
   },
   "chart": [
    {
     "date": "string",
     "value": "string",
     "date_to": "string",
     "is_approximate": true
    }
   ]
  },
  "yesterday_operational_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "op_stack_total_operational_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "op_stack_daily_new_operational_transactions": {
   "info": {
    "id": "string",
    "title": "string",
    "units": "string",
    "description": "string",
    "resolutions": [
     "string"
    ]
   },
   "chart": [
    {
     "date": "string",
     "value": "string",
     "date_to": "string",
     "is_approximate": true
    }
   ]
  },
  "op_stack_yesterday_operational_transactions": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-chain-stats-main-page-metrics-6be61399/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)
