getHealth

Returns whether this RPC node is healthy. The node reports healthy when it is within the configured slot distance of the cluster tip.

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getHealth"
> }
> '

params

None

result

Healthy
Unhealthy
Response
{
"jsonrpc": "2.0",
"result": "ok",
"id": 1
}
string

Returns "ok" when the node is healthy.

Is this page helpful?

Managed by

© 2026 Solana Foundation.
All rights reserved.
Get connected
getHealth | Solana