getBlocksWithLimit
Returns a list of confirmed blocks starting at the given slot
Last updated
Was this helpful?
Returns a list of confirmed blocks starting at the given slot
Last updated
Was this helpful?
The JSON-RPC protocol version.
2.0
Possible values: A unique identifier for the request.
1
The name of the RPC method to invoke.
getBlocksWithLimit
Possible values: POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"jsonrpc": "2.0",
"id": "1",
"method": "getBlocksWithLimit",
"params": [
{
"start_slot": 5,
"limit": 3,
"commitment": "finalized"
}
]
}
{
"jsonrpc": "2.0",
"id": "1",
"result": [
5,
6,
7
]
}