btcintel

Readiness probe

GET /ready
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
No cuenta
niveles y claves
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.

CampoTipoQué lleva
readybooleanTrue when the index and the node answer and the index is at most 2 blocks behind the node.
index_heightintegerThe height of the index's tip. Absent when the index did not answer.
node_heightintegerThe node's tip height. Absent when the index or the node did not answer.
lag_blocksintegerHow many blocks the index trails the node. Absent with node_height.
reasonstringWhy it is not ready: the index or the node did not answer, or the index trails. Absent when ready.
esquema Ready
  • ready boolean obligatorio — 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.

Errores

EstadoCódigoCuándo
503el contrato no nombra ningún códigoIndex 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
}