curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getBlocks",
"params": [
5,
10,
{
"commitment": "finalized"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": [
5,
6,
7,
8,
9,
10
]
}curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getBlocks",
"params": [
5,
10,
{
"commitment": "finalized"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": [
5,
6,
7,
8,
9,
10
]
}The 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?