getHighestSnapshotSlot
Returns the highest full snapshot slot and, if available, the highest incremental snapshot slot built on it.
Request
{ "jsonrpc": "2.0", "id": 1, "method": "getHighestSnapshotSlot"}Parameters
This method accepts no parameters.
Response
When a snapshot is available
{ "jsonrpc": "2.0", "result": { "full": 100, "incremental": 110 }, "id": 1}| Field | Type | Description |
|---|---|---|
| full | u64 | The highest full snapshot slot |
| incremental | u64 | null | The highest incremental snapshot slot based on full, or null if none exists |
When no snapshot is available
{ "jsonrpc": "2.0", "error": { "code": -32008, "message": "No snapshot" }, "id": 1}