Skip to main content

getBlockTime RPC Method

Returns the estimated production time of a block.

params

u64 required Block number, identified by Slot

result

i64 Estimated production time, as Unix timestamp (seconds since the Unix epoch)

cURL

curl https://us-seattle.openverse.network/api -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [
5
]
}
'

Response

{
"jsonrpc": "2.0",
"result": 1574721591,
"id": 1
}