getblockstats

Calculates various statistics for a given block by hash or height.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
hash_or_heightstring or integerRequired

The block hash (string) or height (integer) of the target block.

statslist of stringsRequired

Optional list of specific stats to retrieve. If empty or omitted, returns all stats.

Response

A set of statistical metrics for the specified block.

avgfeeintegerOptional

Average fee in the block (satoshis)

avgfeerateintegerOptional

Average fee rate

avgtxsizeintegerOptional

Average transaction size

blockhashstringOptionalformat: "^[a-fA-F0-9]{64}$"

A 64-character hex string representing the block hash.

feerate_percentileslist of integersOptional

Feerates at 10th, 25th, 50th, 75th, and 90th percentile

heightintegerOptional>=0

The block height (index) used to fetch the block hash.

insintegerOptional

Number of inputs

outsintegerOptional

Number of outputs

maxfeeintegerOptional
maxfeerateintegerOptional
maxtxsizeintegerOptional
medianfeeintegerOptional
mediantimeintegerOptional
mediantxsizeintegerOptional
minfeeintegerOptional
minfeerateintegerOptional
mintxsizeintegerOptional
subsidyintegerOptional
swtotal_sizeintegerOptional
swtotal_weightintegerOptional
swtxsintegerOptional
timeintegerOptional
total_outintegerOptional
total_sizeintegerOptional
total_weightintegerOptional
totalfeeintegerOptional
txsintegerOptional
utxo_increaseintegerOptional
utxo_size_incintegerOptional
utxo_increase_actualintegerOptional
utxo_size_inc_actualintegerOptional