Block chain-status
GET /v1/blocks/{id}/status- 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
- the block's status: en caché 10 segundos, y hasta 30 segundos más mientras se vuelve a leer
- a hash in the legacy internal byte order: the 301 to the canonical address: en caché 1 día
En esta página
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | string | obligatorio | Height (decimal) or canonical block hash (64 hex). |
Qué responde
200 · application/json
Whether the block is in the best indexed chain and its successor.
| Campo | Tipo | Qué lleva |
|---|---|---|
in_best_chain | boolean | True when the block is on the best chain the index follows; false for a block off it that the index also holds. |
height | integer | The block's height. |
hash | string | Canonical display byte order. |
next_best | string | Canonical display byte order. |
esquema
in_best_chainboolean — True when the block is on the best chain the index follows; false for a block off it that the index also holds.heightinteger — The block's height.hashstring — Canonical display byte order.next_beststring — Canonical display byte order.
301
Legacy internal-order hash; Location holds the canonical URL.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | invalid_input: the request is malformed: bad hex, an address of another network, a bad vout, or a value out of its range. The message says which. |
| 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. |
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/status | jq '{in_best_chain, height, hash}'La respuesta, leída el 23 nov 2026 a las 14:56 UTC
{
"in_best_chain": true,
"height": 968212,
"hash": "00000000000000000000c1a9a8e7e5b6042c0a2b1452e9fe4c2e7638b2458648"
}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: 235
X-Ratelimit-Tier: t0