Skip to main content

system_health

Returns the health status of the XX Network node.

Use Cases#

  • Health checks - Monitor node availability
  • Load balancing - Route traffic based on health for secure messaging, private payments, and quantum-resistant cryptography
  • Sync status - Verify node is synced

Parameters#

This method accepts no parameters.

Returns#

FieldTypeDescription
peersNumberConnected peer count
isSyncingBooleanWhether node is syncing
shouldHavePeersBooleanWhether node should have peers

Request#

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

Code Examples#

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