getHighestSnapshotSlot
Returns the highest slot information that the node has snapshots for. This includes both the full snapshot slot and the incremental snapshot slot if available. Snapshots are used for fast validator bootstrap and ledger recovery. This method is useful for operators monitoring node state and for tools that need to determine the node's snapshot freshness.
Parameters
This method does not accept any parameters.
Response
Returns an object:
| Field | Type | Description |
|---|---|---|
full | u64 | Highest full snapshot slot |
incremental | `u64 | null` |
Code Examples
cURL
curl http://88.216.36.108:7999 -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot",
"params": []
}'TypeScript
const response = await fetch("http://88.216.36.108:7999", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "getHighestSnapshotSlot",
params: []
}),
});
const { result } = await response.json();
console.log("Full snapshot:", result.full, "Incremental:", result.incremental);Python
import requests
response = requests.post("http://88.216.36.108:7999", json={
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot",
"params": []
})
result = response.json()["result"]
print(f"Full snapshot: {result['full']}, Incremental: {result['incremental']}")Rust
use reqwest::Client;
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let res = client.post("http://88.216.36.108:7999")
.json(&json!({
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot",
"params": []
}))
.send().await?
.text().await?;
println!("{}", res);
Ok(())
}Example Response
{
"jsonrpc": "2.0",
"result": {
"full": 166960000,
"incremental": 166974000
},
"id": 1
}