getblockstats
Calculates various statistics for a given block by hash or height.
Path parameters
apiKey
Request
This endpoint expects an object.
hash_or_height
The block hash (string) or height (integer) of the target block.
stats
Optional list of specific stats to retrieve. If empty or omitted, returns all stats.
Response
A set of statistical metrics for the specified block.
avgfee
Average fee in the block (satoshis)
avgfeerate
Average fee rate
avgtxsize
Average transaction size
blockhash
A 64-character hex string representing the block hash.
feerate_percentiles
Feerates at 10th, 25th, 50th, 75th, and 90th percentile
height
The block height (index) used to fetch the block hash.
ins
Number of inputs
outs
Number of outputs
maxfee
maxfeerate
maxtxsize
medianfee
mediantime
mediantxsize
minfee
minfeerate
mintxsize
subsidy
swtotal_size
swtotal_weight
swtxs
time
total_out
total_size
total_weight
totalfee
txs
utxo_increase
utxo_size_inc
utxo_increase_actual
utxo_size_inc_actual