system_health
Returns node-level liveness information such as peer count and sync status. Ideal for monitoring bespoke Atlantic nodes or validating that Dwellir endpoints are healthy before issuing high-value transactions.
Parameters
This method does not take parameters.
Returns
Field | Type | Description |
---|---|---|
result.peers | number | Number of peers the node is connected to. |
result.isSyncing | boolean | true if the node is catching up with the network. |
result.shouldHavePeers | boolean | Whether the node expects to maintain peers (false for isolated testing). |
Response Snapshot
{
"jsonrpc": "2.0",
"result": {
"peers": 25,
"isSyncing": false,
"shouldHavePeers": true
},
"id": 1
}
Code Example (@polkadot/api)
import { ApiPromise, WsProvider } from '@polkadot/api';
const provider = new WsProvider('wss://api-manta-atlantic-mainnet.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });
const health = await api.rpc.system.health();
console.log('Peers', health.peers.toNumber());
console.log('Syncing', health.isSyncing.valueOf());
Operational Tips
- Alert when
peers
drops below your minimum threshold—zkSBT issuance pipelines depend on steady finality. isSyncing = true
means the node may serve stale data; pause ingestion until it fully synchronizes.- Combine with
system_version
for a quick at-a-glance health dashboard.