getSnapshotSlot
Deprecated: This method is deprecated. Use
getHighestSnapshotSlotinstead.
Returns the highest slot that the node has a snapshot for. This method has been deprecated in favor of getHighestSnapshotSlot, which provides information about both full and incremental snapshots. Migrate to getHighestSnapshotSlot for more complete snapshot information and continued compatibility with future validator releases.
Parameters
This method does not accept any parameters.
Response
Returns a single value:
| Field | Type | Description |
|---|---|---|
result | u64 | The highest snapshot slot |
Code Examples
cURL
curl http://88.216.36.108:7999 -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getSnapshotSlot",
"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: "getSnapshotSlot",
params: []
}),
});
const { result } = await response.json();
console.log("Snapshot slot:", result);Python
import requests
response = requests.post("http://88.216.36.108:7999", json={
"jsonrpc": "2.0",
"id": 1,
"method": "getSnapshotSlot",
"params": []
})
result = response.json()["result"]
print(f"Snapshot slot: {result}")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": "getSnapshotSlot",
"params": []
}))
.send().await?
.text().await?;
println!("{}", res);
Ok(())
}Example Response
{
"jsonrpc": "2.0",
"result": 166960000,
"id": 1
}