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
1curl 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}'
1curl 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": [45,56,67,78,89,91010],11"id": 112}
1{2"jsonrpc": "2.0",3"result": [45,56,67,78,89,91010],11"id": 112}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free