curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[319712626]}'
Returns the estimated production time of a block.
This method will use 30
Compute Units.
u64
integer Required. The block number, identified by Slot.
result
The response can be either:
i64
. The estimated production time, as Unix timestamp (seconds since the Unix epoch).
null
. If timestamp is not available for the block.