A block's figures, as the node computes them (getblockstats)
GET /v1/blocks/{id}/stats- quién puede llamarla
- Cualquiera
- sin clave y sin sesión
- cuán reciente
- Según la petición
- cada respuesta lleva la altura del índice y la del nodo
- cuán reciente, según el caso
- by hash: en caché 7 días, nunca cambia
- by height: en caché 10 segundos, y hasta 30 segundos más mientras se vuelve a leer
En esta página
Bitcoin Core's getblockstats for one block, renamed to the API's units: the transaction, input and output counts, the total output, the fees (total and median), the subsidy and the reward (subsidy plus fees), the segwit counts and weight, and the change of the UTXO set. Core counts the coinbase in some figures and not in others: txs and outs count it; ins, total_out_sat, total_weight and total_size cover the non-coinbase transactions only. fee_rate_avg is exact: the total fee over the total weight, in sat/vB. Core's own rates (core_fee_rates: minimum, average, maximum and the 10th, 25th, 50th, 75th and 90th percentile of weight) are served verbatim, under Core's names, and are whole sat/vB rounded down (Core divides integers), so a sub-1 sat/vB block reads 0 there; the unrounded percentiles are in the block's summary. A percentile is an individual rate, not the effective rate of a package (bitcoin/bitcoin#31140). A block named by its hash answers with an immutable cache; one named by its height is a reorg away from meaning another block and is kept ten seconds. 404 when the node cannot compute them: it does not have the block, it pruned the block's data, or it has no undo data for it (a stale block it never connected has none).
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | string | obligatorio | Height (decimal) or canonical block hash (64 hex). |
Qué responde
The block's figures.
| Campo | Tipo | Qué lleva |
|---|---|---|
subject | object | The block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for. |
stats | object | The node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added. |
esquema
subjectSubject obligatorio — The block the figures are of: kindblockand its canonical hash, the one asked for or the one at the height asked for.kindstring — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
statsobject obligatorio — The node'sgetblockstatsfor the block, renamed to the API's units, with the reward and the exact average rate added.methodstring obligatorio — Where the figures come from: alwaysgetblockstats, the node's own computation. · uno de "getblockstats"heightinteger obligatorio — The block's height, as the node gives it.txsinteger obligatorio — Transactions, the coinbase included.insinteger — Inputs, the coinbase's left out.outsinteger — Outputs, the coinbase's included.total_out_satinteger — The value of every output but the coinbase's.total_fee_satinteger obligatorio — The fees of the block's transactions, in sat (Core'stotalfee).subsidy_satinteger obligatorio — The block subsidy at its height, in sat (Core'ssubsidy).reward_satinteger obligatorio — Subsidy plus fees.fee_rate_avgnumber — sat/vB, exact: the total fee × 4 over the total weight, three decimals. Absent when the block has no non-coinbase weight.fee_median_satinteger — The median fee of the block's transactions, in sat, truncated as Core computes it (medianfee).core_fee_ratesobject — Core's rates as getblockstats prints them: whole sat/vB, rounded down.minfeeratenumber — The lowest fee rate, Core'sminfeerate.avgfeeratenumber — The average fee rate, Core'savgfeerate.maxfeeratenumber — The highest fee rate, Core'smaxfeerate.feerate_percentilesarray de number — At the 10th, 25th, 50th, 75th and 90th percentile of weight.
segwit_txsinteger — The block's segwit transactions (Core'sswtxs).segwit_weightinteger — The total weight of those segwit transactions, in weight units (Core'sswtotal_weight).total_weightinteger — The total weight of the non-coinbase transactions, in weight units (Core'stotal_weight).total_sizeinteger — The total size of the non-coinbase transactions, in bytes (Core'stotal_size).utxo_increaseinteger — The change in the count of unspent outputs, unspendable outputs counted.utxo_increase_actualinteger — The same without the unspendable outputs. Bitcoin Core gives it since 25.0; absent from an older node.utxo_size_incinteger — The change in the size of the UTXO set, in bytes, unspendable outputs counted (Core'sutxo_size_inc).median_time_unixinteger — The block's median time past, in unix seconds (Core'smediantime).
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 404 | not_found | not_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which. |
| 501 | not_configured | not_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it. |
| 503 | index_unavailable | index_unavailable: the node did not answer. |
Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.
Ejemplo
curl y jq, en cualquier shell.
curl -s https://api.btcintel.io/v1/blocks/968212/stats | jqLa respuesta, leída el 23 nov 2026 a las 14:56 UTC
{
"stats": {
"core_fee_rates": {
"avgfeerate": 1,
"feerate_percentiles": [
0,
0,
1,
2,
4
],
"maxfeerate": 100,
"minfeerate": 0
},
"fee_median_sat": 45,
"fee_rate_avg": 1.701,
"height": 968212,
"ins": 7649,
"median_time_unix": 1790125957,
"method": "getblockstats",
"outs": 11732,
"reward_sat": 314198142,
"segwit_txs": 3884,
"segwit_weight": 3136344,
"subsidy_sat": 312500000,
"total_fee_sat": 1698142,
"total_out_sat": 408598427396,
"total_size": 1569134,
"total_weight": 3993944,
"txs": 5089,
"utxo_increase": 4083,
"utxo_increase_actual": 678,
"utxo_size_inc": 297077
},
"subject": {
"key": "00000000000000000000c1a9a8e7e5b6042c0a2b1452e9fe4c2e7638b2458648",
"kind": "block"
}
}Sus cabeceras
Cache-Control: public, max-age=10, stale-while-revalidate=30
X-Btcintel-Index-Height: 977224
X-Btcintel-Node-Height: 977224
X-Ratelimit-Limit: 120
X-Ratelimit-Remaining: 215
X-Ratelimit-Tier: t0