# 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 24-hour transaction statistics for a specified blockchain chain, including count, average fees, total fees, and pending transaction count

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/stats
- 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-33d41f96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0Xx_OgHVxAaC67vp2w92c

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-33d41f96
```

Example prompt: What are the 24-hour transaction stats for Ethereum right now — how many transactions went through, what were the average and total fees, and how many are still pending?

## When to prefer this

Use this endpoint when you need a quick, aggregated 24-hour statistical summary of on-chain transaction activity for a specific EVM-compatible chain — particularly when you want fee averages, fee totals, transaction counts, and pending queue size in a single call without parsing raw transaction lists. Prefer this over full transaction list endpoints when you only need summary metrics, not individual transaction details.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Chain not indexed by Blockscout returns 404 or not-found error
- Temporary Blockscout API downtime causes 5xx errors
- Rate limiting or payment failure causes 402 or 429 responses
- Stats may be slightly delayed due to indexing lag

## 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 four string fields: transactions_count_24h (number of transactions in the last 24 hours), transaction_fees_avg_24h (average transaction fee over 24 hours), transaction_fees_sum_24h (total transaction fees summed over 24 hours), and pending_transactions_count (current number of unconfirmed transactions).

## 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_count_24h": "string",
  "transaction_fees_avg_24h": "string",
  "transaction_fees_sum_24h": "string",
  "pending_transactions_count": "string"
 }
}
```

## More

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