Source
get_blocksParameters
start slot
Start slot
end slot
Inclusive end slot. For backwards compatibility, this parameter position may
also be used for a configuration object.
- If this parameter is a number, it is the inclusive end slot and must be no
more than 500,000 slots higher than
start slot. - If this parameter is an object, it has the same shape as
configand the request omitsend slot.
| Field | Type | Description |
|---|---|---|
commitment | string | Commitment level used to select which slot the node reads from for this request. processed is not supported. |
minContextSlot | number | Minimum slot at which the request may be evaluated. |
config
Configuration object. This parameter is only used when
end slot is provided as
a number.Result
result
An array of u64 integers listing confirmed blocks between
start_slot and
either end_slot - if provided, or the highest slot available at the requested
commitment, inclusive. Max range allowed is 500,000 slots. If end_slot is
lower than start_slot, the result is an empty array.