Solana
Solana
Solana
Free tier covers personal projects. Pay-as-you-go scales without a card.
getHealth is a Solana JSON-RPC method that reports whether an RPC node is caught up with the rest of the cluster. It returns the string "ok" when the node is keeping pace with the ~400ms slots that advance the SOL ledger, or a JSON-RPC error when it has fallen too many slots behind. It is the lightest possible probe for load balancing — no parameters, no commitment, just a fast yes/no signal. Send it as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY.
"ok"."ok" response means it is lagging the latest slots.This method takes no parameters. Pass an empty array [].
| Type | Description |
|---|---|
| string | "ok" when healthy, or an error if the node is behind. |
| Code | Message | Cause |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
"ok" result, so read the error field, not just result — a client that only inspects result will misread a lagging node as healthy."ok" only means the node is caught up enough on slots; it is not a deep correctness guarantee, so do not treat it as proof that every account or transaction query will be fully accurate.