Skip to content
Alchemy Logo

/v1/-/healthy

GET
https://aptos-mainnet.g.alchemy.com/v2/docs-demo/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

integeroptional

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

Responses

200

Server is healthy.

503

Server is not healthy (e.g., too far behind).

Was this page helpful?