btcintel

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
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Según la petición
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
Block by height or canonical hash tiene una: get_block
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

NombreDóndeTipoObligatorioQué hace
idrutastringobligatorioHeight (decimal) or canonical block hash (64 hex).

Qué responde

The block's figures.

CampoTipoQué lleva
subjectobjectThe block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for.
statsobjectThe node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added.
esquema
  • subject Subject obligatorio — The block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for.
    • kind string — What the key names, which also sets the key's form. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
    • key string — Canonical key.
  • stats object obligatorio — The node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added.
    • method string obligatorio — Where the figures come from: always getblockstats, the node's own computation. · uno de "getblockstats"
    • height integer obligatorio — The block's height, as the node gives it.
    • txs integer obligatorio — Transactions, the coinbase included.
    • ins integer — Inputs, the coinbase's left out.
    • outs integer — Outputs, the coinbase's included.
    • total_out_sat integer — The value of every output but the coinbase's.
    • total_fee_sat integer obligatorio — The fees of the block's transactions, in sat (Core's totalfee).
    • subsidy_sat integer obligatorio — The block subsidy at its height, in sat (Core's subsidy).
    • reward_sat integer obligatorio — Subsidy plus fees.
    • fee_rate_avg number — sat/vB, exact: the total fee × 4 over the total weight, three decimals. Absent when the block has no non-coinbase weight.
    • fee_median_sat integer — The median fee of the block's transactions, in sat, truncated as Core computes it (medianfee).
    • core_fee_rates object — Core's rates as getblockstats prints them: whole sat/vB, rounded down.
      • minfeerate number — The lowest fee rate, Core's minfeerate.
      • avgfeerate number — The average fee rate, Core's avgfeerate.
      • maxfeerate number — The highest fee rate, Core's maxfeerate.
      • feerate_percentiles array de number — At the 10th, 25th, 50th, 75th and 90th percentile of weight.
    • segwit_txs integer — The block's segwit transactions (Core's swtxs).
    • segwit_weight integer — The total weight of those segwit transactions, in weight units (Core's swtotal_weight).
    • total_weight integer — The total weight of the non-coinbase transactions, in weight units (Core's total_weight).
    • total_size integer — The total size of the non-coinbase transactions, in bytes (Core's total_size).
    • utxo_increase integer — The change in the count of unspent outputs, unspendable outputs counted.
    • utxo_increase_actual integer — The same without the unspendable outputs. Bitcoin Core gives it since 25.0; absent from an older node.
    • utxo_size_inc integer — The change in the size of the UTXO set, in bytes, unspendable outputs counted (Core's utxo_size_inc).
    • median_time_unix integer — The block's median time past, in unix seconds (Core's mediantime).

Errores

EstadoCódigoCuándo
400invalid_inputMalformed input (invalid_input).
404not_foundnot_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.
501not_configurednot_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.
503index_unavailableindex_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 | jq

La 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