getMaxShredInsertSlot
Last updated:
`getMaxShredInsertSlot` returns the highest slot number that the node has seen **after shred insert** — that is, after the raw block fragments (shreds) for a slot have been received and written to the blockstore, but before the slot has been replayed and fully processed.
Because shreds arrive on the network ahead of full block processing, the value returned here is typically **higher than [`getSlot`](./getSlot.md)** (which reports the most recent processed slot). Use it as a leading indicator of how far the node has received block data, for example when monitoring ingest freshness or estimating how far behind processing is from the network tip.
> **Gotchas** > - This is *not* a confirmed or finalized slot. Data for the returned slot may > still be incomplete or may not survive replay — never treat it as a slot > you can safely fetch a full block for. Use [`getSlot`](./getSlot.md) or > [`getFirstAvailableBlock`](./getFirstAvailableBlock.md) for that. > - The gap between this value and `getSlot` reflects shred-ingest lead time; > it fluctuates and is not a fixed offset.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getMaxShredInsertSlot","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "getMaxShredInsertSlot",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getMaxShredInsertSlot","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- Credit cost: 1 per call.
FAQ
- What does getMaxShredInsertSlot do?
- Returns the highest slot the node has observed after inserting shreds, before the slot is fully processed.
- How many credits does getMaxShredInsertSlot cost?
- getMaxShredInsertSlot costs 1 credit(s) per call on Triport by default.
- Is getMaxShredInsertSlot available over WebSocket?
- getMaxShredInsertSlot is an HTTP JSON-RPC method.