Healthy
By default this endpoint just checks that it can get the latest ledger info and then returns 200.
If the duration_secs param is provided, this endpoint will return a 200 if the following condition is true:
server_latest_ledger_info_timestamp >= server_current_time_timestamp - duration_secs
Query parameters
duration_secsinteger · uint32Optional
Threshold in seconds that the server can be behind to be considered healthy
If not provided, the healthcheck will always succeed
Responses
200Success
application/json
500Error
application/json
503Error
application/json
get
GET /v1/-/healthy HTTP/1.1
Host: apt.nownodes.io
Accept: */*
{
"message": "text"
}
Last updated