/v1/-/healthy

Checks whether the node is healthy. By default, this endpoint just verifies that the node can retrieve the latest ledger info and returns a `200 OK`. If the optional `duration_secs` query parameter is specified, the endpoint returns a `200` only if: `server_latest_ledger_info_timestamp >= server_current_time_timestamp - duration_secs` Otherwise, it returns a `503 Service Unavailable`.

Query Parameters

duration_secsintegerOptional>=0
Threshold in seconds for how far behind the server can be to still be considered healthy. If not provided, the health check always succeeds.

Response

Server is healthy.
messagestring or null

Errors