LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
Returns a list of confirmed blocks between two slots.
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": "1", "method": "getBlocks", "params": [ 5, 10, { "commitment": "finalized" } ] }'
{ "jsonrpc": "2.0", "id": "1", "result": [ 5, 6, 7, 8, 9, 10 ] }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved confirmed blocks.
The response is of type object.
object
Was this page helpful?