Solana RPC · Blocks & slots
POST getBlocksWithLimit
List of confirmed blocks starting at a slot.
Endpoint
POST https://solrpc.infinityblocks.io/<API_KEY>
Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
startSlot | number | yes | First slot. |
limit | number | yes | How many blocks (≤500,000). |
config | object | no | commitment. |
Request
curl -s https://solrpc.infinityblocks.io/<API_KEY> \
-X POST -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getBlocksWithLimit","params":[423214000,5]}'
With @solana/web3.js
const blocks = await rpc.getBlocksWithLimit(423214000, 5);
Response
{ "jsonrpc": "2.0", "id": 1, "result": [423214000, 423214001, 423214002, 423214003, 423214004] }
Try it
Run getBlocksWithLimitlive · POST
Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.
—