> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# getMaxShredInsertSlot on Solana

> getMaxShredInsertSlot returns the highest slot for which shreds have been inserted on Solana, via GoldRush JSON-RPC.

> [card] 0.01 credits per call

`getMaxShredInsertSlot` on **Solana**: Returns the highest slot for which shreds have been inserted.

## Endpoint

```
https://rpc.goldrushdata.com/v1/solana-mainnet
```

Authenticate with `Authorization: Bearer <GOLDRUSH_API_KEY>`. See [authentication](https://goldrush.dev/docs/goldrush-json-rpc/authentication.md).

## Parameters

*This method takes no parameters.*

## Returns

`u64`: Highest shred-insert slot.

```json theme={null}
372877175
```

## Examples

```bash curl theme={null}
curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getMaxShredInsertSlot",
    "params": []
  }'
```

```typescript @solana/kit theme={null}
import {
  createDefaultRpcTransport,
  createSolanaRpcFromTransport,
} from "@solana/kit";

const transport = createDefaultRpcTransport({
  url: "https://rpc.goldrushdata.com/v1/solana-mainnet",
  headers: { Authorization: `Bearer ${process.env.GOLDRUSH_API_KEY}` },
});
const rpc = createSolanaRpcFromTransport(transport);

const result = await rpc.getMaxShredInsertSlot().send();
console.log(result);
```

```python python theme={null}
import os
import requests

resp = requests.post(
    "https://rpc.goldrushdata.com/v1/solana-mainnet",
    headers={
        "Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={"jsonrpc": "2.0", "id": 1, "method": "getMaxShredInsertSlot", "params": []},
)
print(resp.json()["result"])
```

## Errors

Standard JSON-RPC errors: `-32600` invalid request, `-32601` method not found, `-32602` invalid params.

## Related Slot info methods on Solana

* [`getSlot` on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslot)
* [`getSlotLeader` on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslotleader)
* [`getSlotLeaders` on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslotleaders)
* [`getLeaderSchedule` on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getleaderschedule)
* [`getMaxRetransmitSlot` on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getmaxretransmitslot)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.