getHighestSnapshotSlot
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.
getHighestSnapshotSlot
POST http://srpc.solapi.pro/?api_key=<api-key>
Request:
const response = await fetch('http://srpc.solapi.pro/?api_key=<api-key>', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "1",
"method": "getHighestSnapshotSlot"
}),
});
const data = await response.json();
Response:
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"full": 100,
"incremental": 110
}
}
Last updated