Returns a list of confirmed blocks between two slots
Last updated 4 months ago
Was this helpful?
The JSON-RPC protocol version.
2.0
A unique identifier for the request.
1
The name of the RPC method to invoke.
getBlocks
Request parameters for the method.
POST / HTTP/1.1 Host: mainnet.helius-rpc.com Content-Type: application/json Accept: */* Content-Length: 60 { "jsonrpc": "2.0", "id": "1", "method": "getBlocks", "params": [ 5 ] }
Successfully retrieved confirmed blocks.
{ "jsonrpc": "2.0", "id": "1", "result": [ 5, 6, 7, 8, 9, 10 ] }