Skip to main content

bb_getFeeStats RPC Method - Blockbook

Returns fee statistics for a block, including transaction count, total fees, average fee per kilobyte, and the fee-per-kilobyte distribution by decile.

Updated on
Aug 09, 2026
Please note that this RPC method requires the Blockbook RPC enabled on your Quicknode endpoint.

Parameters

block_id
string
REQUIRED

The block height or block hash to query.

Returns

txCount
integer

Number of transactions in the block.

totalFeesSat
string

Total fees paid in the block, in satoshis.

averageFeePerKb
integer

Average fee per kilobyte across the block, in satoshis.

decilesFeePerKb
array

Fee-per-kilobyte distribution split into deciles (11 values, lowest to highest), in satoshis.

Request
Response
1
{
2
"id": 1,
3
"result": {
4
"txCount": 0,
5
"totalFeesSat": "0",
6
"averageFeePerKb": 0,
7
"decilesFeePerKb": [
8
0,
9
0,
10
0,
11
0,
12
0,
13
0,
14
0,
15
0,
16
0,
17
0,
18
0
19
]
20
},
21
"jsonrpc": "2.0"
22
}
1
{
2
"id": 1,
3
"result": {
4
"txCount": 0,
5
"totalFeesSat": "0",
6
"averageFeePerKb": 0,
7
"decilesFeePerKb": [
8
0,
9
0,
10
0,
11
0,
12
0,
13
0,
14
0,
15
0,
16
0,
17
0,
18
0
19
]
20
},
21
"jsonrpc": "2.0"
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free