OpenInfra.sh is now live - Solana infrastructure, included with every server. LEARN MORE HERE >

OpenInfra.shopeninfra.sh

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}
FieldTypeDescription
fullu64The highest full snapshot slot
incrementalu64 | nullThe 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}