Node & Network

Operator-facing endpoints for monitoring.

5 methods · verified against the live mainnet RPC at https://rpc.sumchain.io.

health

Liveness probe.

Request
{"jsonrpc":"2.0","method":"health","params":[],"id":1}
Response (live)
{
  "jsonrpc": "2.0",
  "result": {
    "status": "ok",
    "chain_id": 1,
    "height": 4807039,
    "peer_count": 2,
    "is_validator": true,
    "is_synced": true
  },
  "id": 1
}
node_info

Version, peer ID, uptime.

Request
{"jsonrpc":"2.0","method":"node_info","params":[],"id":1}
Response (live)
{
  "jsonrpc": "2.0",
  "result": {
    "version": "0.1.0",
    "chain_id": 1,
    "network": "sumchain-1",
    "peer_id": "12D3KooW…",
    "is_validator": true,
    "current_height": 4807038,
    "peer_count": 2,
    "mempool_size": 0,
    "uptime_seconds": 238205
  },
  "id": 1
}
get_metrics

Prometheus-style metrics snapshot.

get_peers

Connected peers.

get_p2p_stats

libp2p connection statistics.

Request
{"jsonrpc":"2.0","method":"get_p2p_stats","params":[],"id":1}
Response (live)
{
  "jsonrpc": "2.0",
  "result": {
    "total_known_peers": 2,
    "connected_peers": 2,
    "inbound_connections": 0,
    "outbound_connections": 2,
    "banned_peers": 0,
    "max_connections": 100,
    "max_inbound": 50,
    "max_outbound": 50
  },
  "id": 1
}