⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

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

FieldTypeDescription
result.peersnumberNumber of peers the node is connected to.
result.isSyncingbooleantrue if the node is catching up with the network.
result.shouldHavePeersbooleanWhether 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.