Learn getHighestSnapshotSlot use cases, code examples, request parameters, response structure, and tips.
getHighestSnapshotSlot
RPC method returns information about the highest slot for which the queried Solana node has ledger snapshots. This includes both the latest full snapshot slot and, if available, the latest incremental snapshot slot that is based on that full snapshot.
Snapshots are crucial for nodes to quickly sync with the network and for ledger maintenance.
Version Note: This method is available in solana-core
v1.9 or newer. For older versions (v1.8 and below), use getSnapshotSlot
.
result
field of the JSON-RPC response will be an object with the following fields:
full
(u64): The slot number of the highest full snapshot available on the node.incremental
(u64 | null): The slot number of the highest incremental snapshot that builds upon the full
snapshot. This can be null
if no incremental snapshot is available for the latest full snapshot or if incremental snapshots are not enabled/generated.solana-core
versions 1.9 and newer. Ensure your node or RPC provider supports this version if you intend to use it.getHighestSnapshotSlot
RPC method to retrieve information about the latest snapshots available on a Solana node.