# Blockscout — Get transaction statistics

Get Blockscout chain transaction statistics via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including reported pending transaction count, transaction fees avg 24h, and transaction fees sum 24h for chain dashboards, and fee context panels, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/blockscout/blockscout-get-transaction-statistics/1fbef235-01c0-41b0-81b9-8599752f480a/
API ID: 1fbef235-01c0-41b0-81b9-8599752f480a
Provider: blockscout
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockscout/{chain_id}/api/v2/transactions/stats
Page update time: 2026-12-03T02:49:17.905Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:17.536Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockscout Transaction Statistics API

Supply chain\_id to transactions/stats. The result separates pending\_transactions\_count, transactions\_count\_24h and 24-hour fee aggregates. These network measures are distinct from the price of calling this API.

## What You Can Build

- **Chain dashboards**: Present pending and 24-hour activity as separate measures.
- **Fee context panels**: Keep network fee aggregates separate from API costs.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `pending_transactions_count` | Reported pending transaction count |
| `transactions_count_24h` | Reported transaction count over 24 hours |
| `transaction_fees_avg_24h` | Reported average network transaction fee over 24 hours |
| `transaction_fees_sum_24h` | Reported total network transaction fees over 24 hours |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Blockscout — Get transaction statistics request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chain_id": {
          "type": "string",
          "description": "The ID of the blockchain"
        }
      },
      "required": [
        "chain_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "pending_transactions_count": {
      "type": "string"
    },
    "transaction_fees_avg_24h": {
      "type": "string"
    },
    "transaction_fees_sum_24h": {
      "type": "string"
    },
    "transactions_count_24h": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template · Schema template (not executed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockscout/%3Cchain_id%3E/api/v2/transactions/stats' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Documented HTTP 200
```json
{
  "pending_transactions_count": "<pending_transactions_count>",
  "transaction_fees_avg_24h": "<transaction_fees_avg_24h>",
  "transaction_fees_sum_24h": "<transaction_fees_sum_24h>",
  "transactions_count_24h": "<transactions_count_24h>"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are the fee fields API calling prices?
No. They describe network transaction fees. Check the selected implementation’s pricing area for API billing.

### Are these fields JSON numbers?
The documented fields are strings. Preserve precision when parsing or formatting them.

### Does pending_transactions_count have the same time scope as the 24h fields?
Keep it as the pending count; the other named fields explicitly describe 24-hour aggregates.

### Can I choose a custom aggregation window?
This implementation exposes chain_id only.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- blockscout: https://openany.si/blockscout/blockscout-get-transaction-statistics/1fbef235-01c0-41b0-81b9-8599752f480a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
