Skip to main content

getblockstats RPC Method

Calculates per block statistics for a given window.

Updated on
Feb 03, 2026

Parameters

hash_or_height
string | integer
REQUIRED

The block hash or height of the target block

stats
JSON Array

JSON array of values to filter from

Returns

result
object

The block statistics object

avgfeerate
number

Average fee rate

minfeerate
number

Minimum feerate in the block

avgfee
string

Average fee in the block

avgtxsize
string

Average transaction size

blockhash
string

The hash of the block

feerate_percentiles
string

A JSON array containing Feerates at the 10th, 25th, 50th, 75th, and 90th percentile weight unit

height
integer

The height of the block

ins
string

The number of inputs

maxfee
string

Maximum fee in the block

maxfeerate
string

Maximum feerate in the block

maxtxsize
string

Maximum transaction size in the block

medianfee
string

Truncated median fee in the block

mediantime
integer

The block median time past

mediantxsize
string

Truncated median transaction size

minfee
string

Minimum fee in the block

mintxsize
string

Minimum transaction size

outs
string

The number of outputs

subsidy
string

The block subsidy

swtotal_size
string

Total size of all segwit transactions

swtotal_weight
string

Total weight of all segwit transactions

swtxs
string

The number of segwit transactions

time
integer

The block time

total_out
string

Total amount in all outputs (excluding coinbase thus reward [i.e subsidy + totalfee])

total_size
string

Total size of all non-coinbase transactions

total_weight
string

Total weight of all non-coinbase transactions

totalfee
string

The fee total

txs
string

The number of transactions

utxo_increase
string

The increase/decrease in the number of unspent outputs

utxo_size_inc
string

The increase/decrease in size for the utxo index

error
object | null

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"avgfeerate": 0,
5
"minfeerate": 0
6
},
7
"id": 1
8
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"avgfeerate": 0,
5
"minfeerate": 0
6
},
7
"id": 1
8
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free