Skip to main content

system_health - JSON-RPC Method

Description#

Returns basic health information about the node, including peer count and sync status.

Example Response#

{
"peers": 95,
"isSyncing": false,
"shouldHavePeers": true
}

Code Examples#

curl ${S.rpcBase} \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_health",
"params": [],
"id": 1
}'