Skip to main content

system_health

Description#

Returns the current health status of an Astar node, including peer connectivity and synchronization state. Useful for infrastructure monitoring and alerting.

Parameters#

This method does not require any parameters.

Returns#

FieldTypeDescription
peersnumberConnected peer count
isSyncingbooleanIndicates whether the node is catching up
shouldHavePeersbooleanFalse only for isolated development nodes

Request Example#

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

Response Example#

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

Code Examples#

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