Skip to main content

getBlocksWithLimit RPC Method

Loading...

Updated on
Sep 22, 2025

getBlocksWithLimit RPC Method

Please note that for this RPC method, block range limits are set to 5 for Free Trial plans and 1005 for all paid accounts.

Parameters

start_slot
string
REQUIRED
Loading...
limit
string
REQUIRED
Loading...
object
object
Loading...
commitment
string
Loading...

Returns

result
Loading...
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d $'
5
{
6
"jsonrpc": "2.0",
7
"id":1,
8
"method":"getBlocksWithLimit",
9
"params":[5, 3]
10
}
11
'
Response
1
{
2
"jsonrpc": "2.0",
3
"result": [
4
5,
5
6,
6
7
7
],
8
"id": 1
9
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free