getHealth RPC Method
Returns the current health of the node. A healthy node is one that is within
HEALTH_CHECK_SLOT_DISTANCE
slots of the latest cluster confirmed slot.
Parameters
None
Result
If the node is healthy: "ok"
If the node is unhealthy, a JSON RPC error response is returned. The specifics of the error response are UNSTABLE and may change in the future
Code sample
Response
Healthy Result:
Unhealthy Result (generic):
Unhealthy Result (if additional information is available)