Network
getHighestSnapshotSlot
Returns the highest slot information from a snapshot
Parameters
This method does not take any parameters.
Response
Code Examples
Basic Request
Using web3.js
Notes
- Returns information about the highest snapshot slots
- Full snapshots contain the complete ledger state
- Incremental snapshots contain changes since the last full snapshot
- Incremental snapshots may not be available on all nodes
- The response is immediate as it reads from the current state
Best Practices
- Use this method to determine snapshot availability
- Consider snapshot age when planning operations
- Cache results when appropriate to reduce RPC load
- Handle cases where incremental snapshots are not available
- Use in conjunction with other snapshot methods
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32007 | Snapshot information unavailable | Node may be bootstrapping or syncing |
Use Cases
-
Snapshot Analysis
-
Snapshot Monitoring
-
Snapshot Verification