# Blockscout Contract Statistics by Chain

> Blockscout Contract Statistics by Chain 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-12).

Returns contract deployment statistics for a specific blockchain network, including total contracts, new contracts in 24h, total verified contracts, and new verified contracts in 24h.

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/stats-service/api/v1/pages/contracts
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-contract-statistics-by-chain-1a870c54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dpevc76P18sKOFoFQkDza

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-contract-statistics-by-chain-1a870c54
```

Example prompt: Using Blockscout, pull the smart contract stats for Ethereum — I want to know the total number of contracts deployed, how many went live in the last 24 hours, and how many are verified.

## When to prefer this

Choose this endpoint when you need aggregate contract statistics for a specific blockchain chain — particularly total deployment counts, recent 24-hour activity, and verification ratios. It is ideal for ecosystem health dashboards, developer analytics, and monitoring smart contract activity trends. Prefer this over transaction-level endpoints when you need summary-level contract metrics rather than individual contract details.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Chain not indexed by Blockscout returns no data
- Network outage on Blockscout infrastructure causes timeout
- Rate limiting if called excessively without proper credentials
- Malformed chain_id path parameter causes 400 or 404 error

## 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 a JSON object with four statistical fields: total_contracts (cumulative contracts deployed), new_contracts_24h (contracts deployed in the last 24 hours), total_verified_contracts (total contracts with verified source code), and new_verified_contracts_24h (newly verified contracts in the last 24 hours). Each field includes an id, title, units, value, and description.

## 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_contracts": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "new_contracts_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "total_verified_contracts": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "new_verified_contracts_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-contract-statistics-by-chain-1a870c54/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)
