getBlockTime
Returns the estimated production time of a block.

Parameters

  • <u64> - slot integer for a block

Results

  • <i64> - estimated production time, as a Unix timestamp (seconds since the Unix epoch. If timestamp is not availabe for this block, returns <null>

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[100000000]}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": 1633504705,
4
"id": 1
5
}
Copied!