Skip to main content

getHighestSnapshotSlot RPC Method

Returns the highest slot information that the node has snapshots for.

This will find the highest full snapshot slot, and the highest incremental snapshot slot based on the full snapshot slot, if there is one.

params

None

result

object When the node has a snapshot, this returns a JSON object with the following fields:

full

The highest full snapshot slot

incremental

The highest incremental snapshot slot based on full

cURL

curl https://api.mainnet.openverse.network/ -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot"
}
'

Response

{
"jsonrpc": "2.0",
"result": {
"full": 100,
"incremental": 110
},
"id": 1
}