curl -X POST "https://api.blockdb.io/v1/evm/raw/blocks-summary" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null,
"include_fee_histogram": true,
"bucket_granularity": "hour"
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"include_fee_histogram": true,
"bucket_granularity": "hour"
}
},
"data": [
{
"bucket_start": "2025-11-11T00:00:00Z",
"bucket_end": "2025-11-11T00:59:59Z",
"bucket_granularity": "hour",
"block_count": 300,
"min_block_number": 18900000,
"max_block_number": 18900299,
"tx_count": 420000,
"successful_tx_count": 405000,
"failed_tx_count": 15000,
"unique_senders": 128456,
"unique_recipients": 98234,
"gas_used": "9203456789000",
"gas_limit": "9300000000000",
"base_fee_per_gas_min": "2100000000",
"base_fee_per_gas_max": "2300000000",
"base_fee_per_gas_avg": "2195000000",
"priority_fee_per_gas_avg": "1500000000",
"burned_fees": "1932000000000000000",
"net_issuance": "-1300000000000000000",
"fee_histogram": [
{
"bucket_index": 0,
"max_effective_gas_price": "500000000",
"tx_count": 42000
}
]
}
],
"cursor": null,
"page_count": 1
}
Primitives
Blocks Summary
Aggregate throughput, fee, and usage metrics over block or time ranges.
POST
/
v1
/
evm
/
raw
/
blocks-summary
curl -X POST "https://api.blockdb.io/v1/evm/raw/blocks-summary" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null,
"include_fee_histogram": true,
"bucket_granularity": "hour"
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"include_fee_histogram": true,
"bucket_granularity": "hour"
}
},
"data": [
{
"bucket_start": "2025-11-11T00:00:00Z",
"bucket_end": "2025-11-11T00:59:59Z",
"bucket_granularity": "hour",
"block_count": 300,
"min_block_number": 18900000,
"max_block_number": 18900299,
"tx_count": 420000,
"successful_tx_count": 405000,
"failed_tx_count": 15000,
"unique_senders": 128456,
"unique_recipients": 98234,
"gas_used": "9203456789000",
"gas_limit": "9300000000000",
"base_fee_per_gas_min": "2100000000",
"base_fee_per_gas_max": "2300000000",
"base_fee_per_gas_avg": "2195000000",
"priority_fee_per_gas_avg": "1500000000",
"burned_fees": "1932000000000000000",
"net_issuance": "-1300000000000000000",
"fee_histogram": [
{
"bucket_index": 0,
"max_effective_gas_price": "500000000",
"tx_count": 42000
}
]
}
],
"cursor": null,
"page_count": 1
}
Overview
- Dataset ID:
0101 - Blocks - Description: Aggregated block metrics (gas, throughput, fees) over a range; derived from
blockdb_evm.b0101_blocks_v1. This endpoint returns aggregated buckets, not raw block rows. - CSV Sample: Download
- JSON Sample: Download
Parameters
Range Filters (mutually exclusive)
Starting block number (inclusive) for the query. Use with
to_block.Ending block number (inclusive) for the query. Use with
from_block.Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with
to_timestamp.Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with
from_timestamp.Validation rule:
You must provide either a block range or a time range.
Providing both results in HTTP 400.
Providing neither results in HTTP 400.
You must provide either a block range or a time range.
Providing both results in HTTP 400.
Providing neither results in HTTP 400.
Aggregation Controls
Adds a 10-bucket histogram for effective gas price distribution when
true.Temporal grouping of the summary. Supported values:
"total", "hour", "day".Pagination Controls
Recommended default
250; maximum 1000 to stay under ~10 MB responses.Pagination cursor from a prior call.
Response Fields
Meta
Echo of request metadata applied to the response.
EVM chain ID echoed from the request.
Pure echo of the window you sent (
from_block/to_block/from_timestamp/to_timestamp); unset bounds are null.The concrete window the query actually executed against, after resolving the request. For a block range on a time-bucketed endpoint (OHLC/VWAP/VWAP-aggregate/fiat VWAP),
from_timestamp/to_timestamp hold the resolved timestamp window (and from_block/to_block echo your request). For a time range on a block-keyed endpoint, from_block/to_block hold the resolved block range (and the timestamps echo your request). null for selector-only requests (no window). No extra database work is done — these are the values the query already computed.Resolved/echoed start block of the executed window.
Resolved/echoed end block of the executed window.
Resolved/echoed start timestamp (ISO-8601) of the executed window.
Resolved/echoed end timestamp (ISO-8601) of the executed window.
Other request knobs echoed back (fee histogram flag, bucket granularity).
Data
Buckets summarising the requested range. One element when
bucket_granularity is "total".ISO-8601 timestamp marking the start of the aggregation window.
ISO-8601 timestamp marking the end of the aggregation window.
Granularity echoed from the request.
Total number of canonical blocks in the bucket.
Smallest block number covered in the bucket.
Largest block number covered in the bucket.
Total transactions in the bucket.
Successful transactions in the bucket.
Failed transactions in the bucket.
Distinct sender addresses observed.
Distinct recipient addresses observed.
Sum of gas used (wei) across all blocks in the bucket.
Sum of gas limits (wei) across all blocks in the bucket.
Minimum base fee per gas (wei).
Maximum base fee per gas (wei).
Average base fee per gas (wei).
Average priority fee per gas (wei) for successful transactions. Nullable on unsupported chains.
Total ETH burned via base fee (wei).
Protocol-level issuance minus burned fees for the bucket (wei).
Ten buckets covering the 0-100 percentile range when
include_fee_histogram is true.Zero-based bucket index (0-9).
Upper bound (exclusive) of the fee bucket (wei).
Transactions in the fee bucket.
Envelope Fields
Pagination cursor for additional buckets when the range exceeds service limits.
Number of bucket elements in
data.Use Cases
- Feed dashboards with pre-aggregated throughput metrics without ETL.
- Detect fee regime shifts by polling hourly buckets.
- Estimate unique user counts per epoch to complement raw transaction exports.
curl -X POST "https://api.blockdb.io/v1/evm/raw/blocks-summary" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null,
"include_fee_histogram": true,
"bucket_granularity": "hour"
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"resolved_window": {
"from_block": 18900000,
"to_block": 18900999,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"include_fee_histogram": true,
"bucket_granularity": "hour"
}
},
"data": [
{
"bucket_start": "2025-11-11T00:00:00Z",
"bucket_end": "2025-11-11T00:59:59Z",
"bucket_granularity": "hour",
"block_count": 300,
"min_block_number": 18900000,
"max_block_number": 18900299,
"tx_count": 420000,
"successful_tx_count": 405000,
"failed_tx_count": 15000,
"unique_senders": 128456,
"unique_recipients": 98234,
"gas_used": "9203456789000",
"gas_limit": "9300000000000",
"base_fee_per_gas_min": "2100000000",
"base_fee_per_gas_max": "2300000000",
"base_fee_per_gas_avg": "2195000000",
"priority_fee_per_gas_avg": "1500000000",
"burned_fees": "1932000000000000000",
"net_issuance": "-1300000000000000000",
"fee_histogram": [
{
"bucket_index": 0,
"max_effective_gas_price": "500000000",
"tx_count": 42000
}
]
}
],
"cursor": null,
"page_count": 1
}
Last modified on May 29, 2026
Was this page helpful?
⌘I