getSnapshotSlot RPC Method

Returns the highest slot that the node has a snapshot for

Deprecated Method

This method is expected to be removed in solana-core v2.0. Please use getHighestSnapshotSlot instead.

Parameters #

None

Result #

<u64> - Snapshot slot

Code sample #

curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
  {"jsonrpc":"2.0","id":1, "method":"getSnapshotSlot"}
'

Response #

{ "jsonrpc": "2.0", "result": 100, "id": 1 }

Result when the node has no snapshot:

{
  "jsonrpc": "2.0",
  "error": { "code": -32008, "message": "No snapshot" },
  "id": 1
}