---
title: getHighestSnapshotSlot
description: >-
  Returns the highest full snapshot slot and, if available, the highest
  incremental snapshot slot built on it.
url: /docs/rpc/http/gethighestsnapshotslot
type: reference
hideTableOfContents: true
---

Returns the highest full snapshot slot and, if available, the highest
incremental snapshot slot built on it.

<Callout type="info" title="Source">
  [`get_highest_snapshot_slot`](https://github.com/anza-xyz/agave/blob/v3.1.8/rpc/src/rpc.rs#L2841)
</Callout>

<APIMethod>

```jsonc !!request curl
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getHighestSnapshotSlot"
}
```

```ts !!request title="Kit"
import { createSolanaRpc } from "@solana/kit";

const rpc_url = "https://api.devnet.solana.com";
const rpc = createSolanaRpc(rpc_url);

let hightestSnapshotSlot = await rpc.getHighestSnapshotSlot().send();

console.log(hightestSnapshotSlot);
```

```rs !!request title="Rust"
use anyhow::Result;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_commitment_config::CommitmentConfig;

#[tokio::main]
async fn main() -> Result<()> {
    let client = RpcClient::new_with_commitment(
        String::from("https://api.devnet.solana.com"),
        CommitmentConfig::confirmed(),
    );

    let highest_snapshot_slot = client.get_highest_snapshot_slot().await?;

    println!("{:#?}", highest_snapshot_slot);

    Ok(())
}
```

### !params

### !!result Snapshot

```jsonc !response
{
  "jsonrpc": "2.0",
  // !hover(1:4) result
  "result": {
    // !hover full
    "full": 100,
    // !hover incremental
    "incremental": 110
  },
  "id": 1
}
```

!type object

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

##### !! full

!type u64

The highest full snapshot slot

##### !! incremental

!type u64 | null

The highest incremental snapshot slot _based on_ `full`

### !!result No Snapshot

```jsonc !response
{
  "jsonrpc": "2.0",
  // !hover(1:4) result
  "error": {
    "code": -32008,
    "message": "No snapshot"
  },
  "id": 1
}
```

!type object

If the node has no snapshot, a JSON RPC error response is returned.

</APIMethod>
