get Blocks
Returns confirmed block slot numbers within a given range, skipping any slots that were never produced.
getBlocks lists which slots in a range have a produced block, given a start and optional end slot, letting an indexer walk the chain sequentially without calling getBlock on skipped slots.
The range is capped server-side: a large span returns as much as the node allows, not necessarily all of it.
Parameters
params is a JSON array, with values in this order: startSlot, endSlot, config.
First slot of the range, inclusive.
Last slot of the range, inclusive. Omit to let the node default to startSlot plus its maximum allowed range, or the current highest confirmed slot, whichever is smaller.
Optional configuration.
Show propertiesProperties
Bank state to list blocks from. processed is not accepted here.
confirmedfinalizedResult
Slot numbers of every produced block in the range, ascending. Not wrapped in a context/value envelope.
Notes
- Skipped slots do not appear in the array; there is no placeholder or marker for them.
- constant-k retains a rolling window of ledger history; a range reaching further back is truncated to what is available, and
minimumLedgerSlotreports the oldest slot in range. - Blade Runner and above only — not available on Free or Operator.