cURL
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.
Successfully retrieved block time.
Unix timestamp (seconds since the Unix epoch) when this specific Solana block was produced by a validator.
1674721622
Was this page helpful?