Skip to main content

system_health - JSON-RPC Method

Description#

Returns basic health telemetry from an Enjin Matrix node including whether it is syncing, the number of peers it is connected to, and whether it expects to have peers. This call is lightweight and safe to poll for infrastructure monitoring.

Parameters#

This method does not take any parameters.

Returns#

FieldTypeDescription
peersnumberNumber of peers currently connected
isSyncingbooleanIndicates if the node is still catching up
shouldHavePeersbooleanWhether the node configuration requires peers

Request Example#

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

Response Example#

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

Code Examples#

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

Monitoring Tips#

  • Set alerts if isSyncing flips to true for production nodes to catch stalled peers early.
  • Track peers over time to validate network connectivity after redeployments or firewall changes.
  • Combine with system_syncState for more granular progress reporting during initial syncs.