Readiness probe
GET /ready- quién puede llamarla
- Cualquiera
- sin clave y sin sesión
- cuán reciente
- Sin cabecera de caché
- Herramienta MCP
- Ninguna
En esta página
200 only when the index (vigia, on a deployment that reads it; else the database) and the node answer, each with a height under 3 s old or within the 2 s of a new read, and the index is within 2 blocks of the node.
Parámetros
No toma parámetros.
Qué responde
Serving honest data.
| Campo | Tipo | Qué lleva |
|---|---|---|
ready | boolean | True when the index and the node answer and the index is at most 2 blocks behind the node. |
index_height | integer | The height of the index's tip. Absent when the index did not answer. |
node_height | integer | The node's tip height. Absent when the index or the node did not answer. |
lag_blocks | integer | How many blocks the index trails the node. Absent with node_height. |
reason | string | Why it is not ready: the index or the node did not answer, or the index trails. Absent when ready. |
esquema Ready
readyboolean obligatorio — True when the index and the node answer and the index is at most 2 blocks behind the node.index_heightinteger — The height of the index's tip. Absent when the index did not answer.node_heightinteger — The node's tip height. Absent when the index or the node did not answer.lag_blocksinteger — How many blocks the index trails the node. Absent withnode_height.reasonstring — Why it is not ready: the index or the node did not answer, or the index trails. Absent when ready.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 503 | el contrato no nombra ningún código | Index or node unreachable, or index lagging; reason explains (index (vigia) unreachable when vigia gives no tip, node unreachable when the node gives no height). |
Ejemplo
curl y jq, en cualquier shell.
curl -s https://api.btcintel.io/ready | jq '{ready, index_height, node_height}'La respuesta, leída el 23 nov 2026 a las 14:56 UTC
{
"ready": true,
"index_height": 977224,
"node_height": 977224
}