Skip to main content
SupernodeService is a gRPC service exposed by every Lumera SuperNode. It gives you a real-time snapshot of the node’s health. The snapshot covers software version, uptime, CPU and memory load, and connected peers. When you opt in, it also includes detailed DHT diagnostics. You can use this service to build monitoring dashboards, alerting pipelines, or operational tooling without any on-chain queries.

Connection

SuperNodes listen on port 4444 by default. Set supernode.port in config.yml to change it. Port 4444 runs Lumera’s own secure handshake, which checks the peer identity against on-chain state. Plain grpcurl cannot reach it. A plaintext dial opens the socket and then times out resolving the service descriptor. A TLS dial fails to connect. The service does not register gRPC reflection either. To check that a node is alive, call its HTTP gateway on port 8002.
Add ?include_p2p_metrics=true to that request for DHT diagnostics. To call SupernodeService itself, use a client that performs the Lumera handshake, such as the supernode Go SDK. Read the gRPC snippets on this page as message shapes rather than commands you can paste.

Proto definition


GetStatus

Returns a point-in-time status snapshot of the SuperNode. The request lets you toggle expensive P2P diagnostics on or off, so routine polling stays lightweight.

Request message StatusRequest

bool
default:"false"
When true, the response includes the full p2p_metrics object containing DHT store/retrieve history, handle counters, ban list, database stats, and disk usage. Set this to false (or omit it) for routine health polling. The peers_count field is always fast and is returned regardless of this flag. Heavier diagnostics are served from a cached last-known-good snapshot.

Response message StatusResponse

string
The SuperNode software version string (e.g., "v2.5.2").
uint64
Seconds elapsed since the SuperNode process started.
object
Hardware resource utilisation at the time of the call.
array of strings
The service names this SuperNode is registered to provide. This is typically ["cascade", "sense"] or a subset of it.
object
P2P network connectivity information.
int32
This node’s rank in the top-SuperNodes list as computed by the chain. Returns 0 if the node is not currently in the top list.
string
The publicly-advertised IP address and service port of this SuperNode (e.g., "203.0.113.45:4444").
object
Detailed P2P and DHT diagnostics. Only present when include_p2p_metrics is true.

Example response


Full example with P2P metrics

Set include_p2p_metrics to true to receive DHT diagnostics alongside the standard fields. Over the HTTP gateway the same request looks like this.