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 (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
getSlotorgetFirstAvailableBlockfor that.- The gap between this value and
getSlotreflects 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://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"getMaxShredInsertSlot","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "getMaxShredInsertSlot",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
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.