# Blockscout Smart Contract Counters

> Blockscout Smart Contract Counters 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-09).

Returns aggregate counts of smart contracts and verified smart contracts on a specific blockchain, including 24-hour new contract statistics

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/smart-contracts/counters
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-smart-contract-counters-ab7a1422
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TZefX-UFTOE21y7llIBE3

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-smart-contract-counters-ab7a1422
```

Example prompt: Using Blockscout, how many smart contracts and verified smart contracts are currently deployed on Ethereum mainnet, and how many new ones were added in the last 24 hours?

## When to prefer this

Use this endpoint when you need high-level aggregate statistics about smart contract deployment and verification on a specific blockchain chain supported by Blockscout. Prefer this over transaction-level queries when you want ecosystem-level metrics rather than individual contract details. It is ideal for dashboards, chain comparison tools, or monitoring deployment activity trends.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Network timeout if the Blockscout node for that chain is unavailable
- Missing chain_id path parameter causes a 404 or routing error
- Chain not indexed by Blockscout returns no data

## 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 string fields: total smart_contracts count, new_smart_contracts_24h (contracts deployed in the last 24 hours), verified_smart_contracts (total verified), and new_verified_smart_contracts_24h (newly verified in the last 24 hours).

## 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": {
  "smart_contracts": "string",
  "new_smart_contracts_24h": "string",
  "verified_smart_contracts": "string",
  "new_verified_smart_contracts_24h": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-smart-contract-counters-ab7a1422/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)
