Skip to main content

system_health - JSON-RPC Method

Description#

Returns health status for the node including peer count and whether the node is syncing. Useful for readiness/liveness probes and diagnostics.

Parameters#

This method does not require any parameters.

Returns#

FieldTypeDescription
peersnumberNumber of connected peers
isSyncingbooleanWhether the node is currently syncing
shouldHavePeersbooleanWhether the node expects to have peers

Code Examples#

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