0.05 credits per call
getBlocksWithLimit on Solana: Returns a list of confirmed blocks starting at a slot, up to a limit.
Endpoint
Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
startSlot | u64 | yes | First slot to include (inclusive). | 372877000 |
limit | u64 | yes | Maximum number of blocks to return (must be no greater than 500,000). | 5 |
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.