Returns whether this RPC node is healthy. Agave reports healthy when the node is within the configured slot distance of the cluster tip.
Source
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getHealth"> }> '
params
Noneresult
Healthy
Unhealthy
Response
{"jsonrpc": "2.0","result": "ok","id": 1}
string
Returns "ok" when the node is healthy.
Is this page helpful?