curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getHealth",
"params": []
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getHealth",
"params": []
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}getHealth method returns the current health status of the node.
A healthy node is one that is within HEALTH_CHECK_SLOT_DISTANCE slots of the latest cluster confirmed slot. This method is useful for monitoring node availability and building health checks into your application infrastructure.
result is the string "ok".error object with a JSON-RPC error code and a message describing the health issue (e.g., behind by too many slots).getHealth is in infrastructure monitoring. You can periodically call getHealth from your load balancer or health check system to verify that your Solana node is synced and responsive before routing traffic to it. This is especially useful when running multiple RPC endpoints for failover.Was this page helpful?