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": "getBlockTime",
"params": [
5
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": 1674721622
}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": "getBlockTime",
"params": [
5
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": 1674721622
}The JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getBlockTime Parameters for the request.
Block slot number to retrieve the corresponding timestamp for.
Was this page helpful?