Skip to main content

getBlocks RPC Method

Loading...

Updated on
Sep 22, 2025

getBlocks RPC Method

Please note: For this RPC method, the block range defined by the start and end slots is limited to a maximum of 5 slots for a free trial account and 1,005 slots for paid accounts.

Parameters

start_slot
string
REQUIRED
Loading...
end_slot
string
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
"jsonrpc": "2.0",
6
"id":1,
7
"method":"getBlocks",
8
"params":[335819351, 335819361]
9
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"result": [
4
5,
5
6,
6
7,
7
8,
8
9,
9
10
10
],
11
"id": 1
12
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free