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
1curl 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": [45,56,677],8"id": 19}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free