Block
getBlockTime
Returns the estimated production time of a block.
Parameters
slotu64 required Block slot number.
Result
i64 | nullEstimated production time, as Unix timestamp (seconds since the Unix epoch).
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [5]
}'Response
JSON{
"jsonrpc": "2.0",
"result": 1574721591,
"id": 1
}