New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
Returns a list of confirmed blocks between two slots.
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--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
]
}Documentation Index
Fetch the complete documentation index at: https://helius-auto-translations.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
confirmedfinalizedThe JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getBlocks "getBlocks"
Request parameters for the method.
Start slot (required).
5
Was this page helpful?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--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
]
}