0.05 credits per call
getBlocks on Solana: Returns a list of confirmed blocks between two slots.
Endpoint
Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
startSlot | u64 | yes | First slot to include (inclusive). | 372877000 |
endSlot | u64 | no | Last slot to include (inclusive). Must be no more than 500,000 slots after startSlot. | 372877175 |
config | object | no | {commitment?}. processed is not supported. | {"commitment":"finalized"} |
Returns
array<u64>: Array of confirmed block slots in ascending order.
Examples
Errors
Standard JSON-RPC errors:-32600 invalid request, -32601 method not found, -32602 invalid params.