capabilities.work

Identify a Node and Its Cluster and Snapshot State

A 6-step recipe with Solana. We can help you get access.

Recipe · 6 steps

Identify a Node and Its Cluster and Snapshot State

with Solana

Establish which node is being talked to, on which cluster, and what it can serve.

  1. Read the node's identity public key, which is how a specific validator is named everywhere else on the cluster.
  2. Read the genesis hash, the unambiguous fingerprint of which cluster this node belongs to. Comparing it against an expected value is the surest guard against pointing production traffic at a test cluster.
  3. Record the solana-core version and feature set, needed to interpret the snapshot and shred values that follow.
  4. Read the highest full and incremental snapshot slots the node holds, which determines whether it can bootstrap another validator and from how recent a point.
  5. Read the highest slot the node has seen via its retransmit stage, an early indicator of how current its shred pipeline is.
  6. Read the highest slot for which the node has inserted shreds. Compared against the retransmit mark, it shows whether the node keeps up with the shreds it receives.
For your developer

Arazzo workflow solana:node-identity-snapshot, 6 operations: getIdentity → getGenesisHash → getVersion → getHighestSnapshotSlot → getMaxRetransmitSlot → getMaxShredInsertSlot. Specs on APIs.io.