getHighestSnapshotSlot
The getHighestSnapshotSlot method returns information about the highest slot for which the node has snapshots. Snapshots are periodic captures of the complete ledger state that validators create to enable fast bootstrapping of new nodes and recovery from failures.
Solana validators periodically create snapshots of the entire blockchain state at specific slots. These snapshots include all account data and allow new validators or nodes to quickly sync by downloading a snapshot instead of replaying the entire blockchain history from genesis. The snapshot mechanism is crucial for network scalability and enables validators to join the network efficiently. This method reveals the most recent snapshot available on the queried node.
Understanding snapshot availability is important for node operators, monitoring tools, and applications that need to verify a node's ability to serve historical state data. Nodes with recent snapshots are better equipped to handle historical queries and can more quickly recover from restarts. The method returns both full snapshots (complete state) and incremental snapshots (state changes since the last full snapshot).
Parameters
parameter | type | description |
|---|---|---|
config | object | Optional configuration object (currently no config options are available) |
Return Object
field | type | description |
|---|---|---|
full | number | Highest slot with a full snapshot (complete state capture) |
incremental | number|undefined | Highest slot with an incremental snapshot (optional, only present if incremental snapshots exist) |
Request Example
Response Example
Tip: Full snapshots are typically created every few hours, while incremental snapshots are more frequent. If a node has no snapshots available, this method returns an error. Use this to verify snapshot availability before attempting state reconstruction or historical queries.