A block's transactions in block order, its OP_RETURNs, its composition and the transactions a source names
GET /v1/blocks/{id}/summary- 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é 5 minutos, y hasta 25 minutos más mientras se vuelve a leer
- by height: en caché 10 segundos, y hasta 30 segundos más mientras se vuelve a leer
En esta página
Read from the node (getblock at verbosity 3) once per block and kept by hash. txs lists every transaction in block order as compact rows (columns): txid, virtual size, fee in sat and fee rate in sat/vB, total output value, input and output counts, its kind as the composition counts it (coinbase, inscription, runes, op_return, coinjoin, payment; unread if the node's hex did not decode), and its data-carrying observations (op_return:*, meta_protocol:*, coinjoin:*; structural matches only). The rate is getblockstats' (fee × 4 / weight) without its rounding down, three decimals. fee_rate_percentiles are the rates at the 10th, 25th, 50th, 75th and 90th percentile of weight, computed as Core's getblockstats does but on those unrounded rates. op_returns lists every OP_RETURN output the catalogue reads, one entry for each output, with its protocol (runes, omni, opentimestamps, counterparty, veriblock, bare_hash, text with its first 80 characters, unknown) and its script size. An output that ends at OP_RETURN, or goes on with a data push (opcodes 0x01 to 0x4e) of any length, even an empty one or one that runs past the script's end, is listed: unknown when nothing in it matches. The summary reads the opcode after OP_RETURN as btcd's script tokenizer does, so an output whose next opcode carries no data (OP_0, OP_1NEGATE, OP_RESERVED, OP_1 to OP_16, or any opcode above OP_16, other than the runes marker OP_13) is not listed, though Bitcoin Core's Solver calls an OP_RETURN followed by push-only opcodes null data and the transaction read, in the chain index's names, types such an output op_return. The coinbase output with BIP141's commitment structure is witness_commitment: when several outputs match, the one with the highest index, as BIP141 reads it, and the others keep their own protocol. Data that Counterparty put in a bare multisig output is listed too, as the catalogue files it. composition gives the block's weight by kind (coinbase, inscription, runes, op_return, coinjoin, payment) and its outputs by script type. flagged lists the transactions that pay or spend an address a current claim names (hop 0), each with the claims, in block order: at most 200, and flagged_total says how many the block holds. A transaction has one hit for each named address and direction: amount_sat is the sum of its outputs to the address (received) or of its inputs from it (sent), and count says how many outputs or inputs it sums, so a sweep of many inputs from one address is one hit. A transaction's hits follow the addresses' order, an address's received before its sent. The claims are matched at most once every five minutes for a block: flagged is kept in memory that long, readers of one block share one lookup, and a lookup that fails is never kept. A claim written since can take five minutes to show, and as long again through an HTTP cache: a block named by its hash is cached for five minutes; one named by its height, ten seconds. At most two blocks are read from the node at once: a request that waits twenty seconds for its turn answers 503 with Retry-After.
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 summary.
| Campo | Tipo | Qué lleva |
|---|---|---|
subject | object | The block summarised: kind block and its canonical hash, the one asked for or the one at the height asked for. |
height | integer | The block's height, as the node gives it. |
tx_count | integer | How many transactions the block holds, the coinbase included: the rows of txs. |
columns | array | The names of a row's cells, in order. |
txs | array | One row for each transaction, in block order. fee_sat and fee_rate are null for the coinbase, and for a transaction whose fee the node did not give. |
fee_complete | boolean | False when the node gave no fee for a non-coinbase transaction. |
prevouts_complete | boolean | False when the node gave no prevout for a non-coinbase input (no undo data): flagged then holds the "received" hits only. |
fee_rate_percentiles | array | sat/vB, unrounded, at the percentiles of weight fee_rate_percentile_w names. |
fee_rate_percentile_w | array | The percentiles of weight the rates of fee_rate_percentiles are read at: 10, 25, 50, 75 and 90. Present with fee_rate_percentiles. |
op_returns | array | One entry for each output the catalogue reads as data, by transaction in block order. Empty when the block has none. |
op_returns[].txid | string | Canonical display byte order. |
op_returns[].position | integer | The transaction's position in the block, 0 for the coinbase. |
op_returns[].output_n | integer | The output's index in its transaction. |
op_returns[].protocol | string | What the catalogue reads the data as: runes, omni, opentimestamps, counterparty, veriblock, bare_hash, text, another known prefix, or unknown; witness_commitment for the coinbase's witness commitment. |
op_returns[].script_bytes | integer | The size of the output's script, in bytes. |
op_returns[].text | string | The start of the data as text, at most 80 bytes. Only for the text protocol. |
composition | object | What the block is made of: its weight by kind of transaction and its outputs by script type. |
flagged | array | The block's transactions that pay or spend an address a current claim names, in block order, at most 200. Empty when none is named; absent when the claims could not be read in full. |
flagged[].txid | string | Canonical display byte order. |
flagged[].position | integer | The transaction's position in the block, 0 for the coinbase. |
flagged[].hits | array | One hit for each named address and direction, in the addresses' order, an address's received before its sent. |
flagged_total | integer | How many transactions of the block a current claim names; flagged lists the first 200 of them. Present with flagged. |
esquema
subjectSubject obligatorio — The block summarised: 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.
heightinteger obligatorio — The block's height, as the node gives it.tx_countinteger obligatorio — How many transactions the block holds, the coinbase included: the rows oftxs.columnsarray de string obligatorio — The names of a row's cells, in order.txsarray de array de array de cualquiera obligatorio — One row for each transaction, in block order.fee_satandfee_rateare null for the coinbase, and for a transaction whose fee the node did not give.fee_completeboolean obligatorio — False when the node gave no fee for a non-coinbase transaction.prevouts_completeboolean obligatorio — False when the node gave no prevout for a non-coinbase input (no undo data):flaggedthen holds the "received" hits only.fee_rate_percentilesarray de number — sat/vB, unrounded, at the percentiles of weightfee_rate_percentile_wnames.fee_rate_percentile_warray de integer — The percentiles of weight the rates offee_rate_percentilesare read at: 10, 25, 50, 75 and 90. Present withfee_rate_percentiles.op_returnsarray de object obligatorio — One entry for each output the catalogue reads as data, by transaction in block order. Empty when the block has none.txidstring — Canonical display byte order.positioninteger — The transaction's position in the block, 0 for the coinbase.output_ninteger — The output's index in its transaction.protocolstring — What the catalogue reads the data as: runes, omni, opentimestamps, counterparty, veriblock, bare_hash, text, another known prefix, or unknown;witness_commitmentfor the coinbase's witness commitment.script_bytesinteger — The size of the output's script, in bytes.textstring — The start of the data as text, at most 80 bytes. Only for thetextprotocol.
compositionobject obligatorio — What the block is made of: its weight by kind of transaction and its outputs by script type.weight_by_kindobject — The weight of the block's transactions by kind, in weight units: coinbase, inscription, runes, op_return, coinjoin, payment, or unread for a transaction whose hex did not decode. A kind with none has no key.outputs_by_typearray de object — The block's outputs by script type, the most numerous first, then by value, then by name.typestring — The script type as the node names it (scriptPubKey.type), orunknownwhen it names none.countinteger — How many of the block's outputs have that type.value_satinteger — Their total value, in sat.
flaggedarray de object — The block's transactions that pay or spend an address a current claim names, in block order, at most 200. Empty when none is named; absent when the claims could not be read in full.txidstring — Canonical display byte order.positioninteger — The transaction's position in the block, 0 for the coinbase.hitsarray de object — One hit for each named address and direction, in the addresses' order, an address'sreceivedbefore itssent.directionstring obligatorio —received: the transaction pays the address.sent: it spends from it. · uno de "received", "sent"addressstring obligatorio — The address the claims name.amount_satinteger obligatorio — The sum of the transaction's outputs to the address (received) or of its inputs from it (sent).countinteger obligatorio — How many outputs or inputs of the transactionamount_satsums. · ≥ 1claimsarray de object obligatorio — The current claims on the address, each in short: the claim object is at/v1/claims/{claim_id}.claim_idstring obligatorio — The claim's id, ann_<n>: the idGET /v1/claims/{claim_id}takes.labelstring obligatorio — The claim's label.abusestring — The claim's abuse word (abuse:…). Absent when it states none.categorystring — The claim's category (entity:…). Absent when it states none.entitystring — The entity's name.sourceobject obligatorio — The claim's source: its id and its name.
flagged_totalinteger — How many transactions of the block a current claim names;flaggedlists the first 200 of them. Present withflagged.
Ausente y vacío
| El caso | En la respuesta |
|---|---|
| The coinbase's row. | Its fee and its fee rate are null. |
| The node has no undo data for the block, as for a stale block it never connected. | No fee and no prevout: fee_complete and prevouts_complete are false, every row's fee and fee rate are null, and flagged holds the "received" hits only. |
| A fee is missing, or the block holds the coinbase alone. | No fee_rate_percentiles, never computed over part of the block. |
| The claims could not be read in full. | No flagged and no flagged_total, never a partial list. |
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, or it is reading other blocks (Retry-After then says when to ask again). |
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/summary | jq '{height, tx_count, fee_complete}'La respuesta, leída el 23 nov 2026 a las 14:56 UTC
{
"height": 968212,
"tx_count": 5089,
"fee_complete": true
}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: 214
X-Ratelimit-Tier: t0