---
title: getMaxShredInsertSlot
description: >-
  Returns the highest slot for which this node has inserted shreds into
  blockstore.
url: /docs/rpc/http/getmaxshredinsertslot
type: reference
hideTableOfContents: true
---

Returns the highest slot for which this node has inserted shreds into
blockstore.

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

<APIMethod>

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

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

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

let maxShredInsertSlot = await rpc.getMaxShredInsertSlot().send();

console.log(maxShredInsertSlot);
```

```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 max_shred_insert_slot = client.get_max_shred_insert_slot().await?;

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

    Ok(())
}
```

### !params

### !!result

```jsonc !response
{
  "jsonrpc": "2.0",
  // !hover result
  "result": 1234,
  "id": 1
}
```

!type u64

Highest slot for which the node has completed shred insertion.

</APIMethod>
