# Blockscout Transaction Stats API

> Blockscout Transaction Stats API 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 transaction statistics for a specific blockchain network, including 24h transaction counts, fees, pending transactions, and cross-chain metrics

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/stats-service/api/v1/pages/transactions
- 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-transaction-stats-api-19826bf1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aaxvie_v7zBPh4oEGU8ni

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-transaction-stats-api-19826bf1
```

Example prompt: Pull the latest transaction stats for Ethereum from Blockscout — I want to see the 24-hour transaction count, average fees, and how many transactions are currently pending.

## When to prefer this

Choose this endpoint when you need aggregate transaction-level statistics for a specific blockchain network (e.g. counts, fees, pending queue) rather than individual transaction details. It is especially useful for dashboards, alerting systems, or agent workflows that monitor chain health or activity levels. For individual transaction lookup or address/token searches, use the broader Blockscout search endpoints instead.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Payment not attached results in 402 Payment Required
- Rate limiting may cause 429 Too Many Requests
- Some chain-specific fields (e.g. ZetaChain cross-chain metrics) return null or are absent for chains that don't support them
- Network timeouts if the upstream chain data is slow to index

## 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 blocks for the requested chain, each with an id, title, units, value, and description. Fields include 24h transaction count, 24h total fees, pending transactions (30-minute window), average fee in 24h, operational transactions, and (where applicable) ZetaChain-specific cross-chain metrics and OP Stack operational transaction counts.

## 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": {
  "transactions_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "transactions_fee_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "pending_transactions_30m": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "average_transactions_fee_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "operational_transactions_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "total_zetachain_cross_chain_txns": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "new_zetachain_cross_chain_txns_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "pending_zetachain_cross_chain_txns": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  },
  "op_stack_operational_transactions_24h": {
   "id": "string",
   "title": "string",
   "units": "string",
   "value": "string",
   "description": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-transaction-stats-api-19826bf1/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)
