Skip to main content

system_health

Description#

Returns the node health status, including peer count, synchronization state, and whether the node expects peers. Use this endpoint for readiness probes and observability dashboards.

Parameters#

This method does not take any parameters.

Returns#

FieldTypeDescription
peersnumberNumber of connected peers
isSyncingbooleanWhether the node is currently syncing
shouldHavePeersbooleanWhether the node is expected to maintain peer connections

Request Example#

{
"jsonrpc": "2.0",
"method": "system_health",
"params": [],
"id": 1
}

Response Example#

{
"jsonrpc": "2.0",
"result": {
"peers": 23,
"isSyncing": false,
"shouldHavePeers": true
},
"id": 1
}

The exact numbers vary with network conditions; a healthy collator typically reports >8 peers and isSyncing: false.

Code Examples#

curl https://api-bifrost-polkadot.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_health",
"params": [],
"id": 1
}'

Operational Notes#

  • Collators should alert when peers drops to zero or isSyncing toggles to true; both indicate consensus issues.
  • Combine with system_version and state_getRuntimeVersion during upgrades to confirm the node is running the expected runtime.