Skip to main content

Blocks

Get Block Rewards by BlockNoโ€‹

Returns the block rewards for validating a certain block.

https://openapi.coredao.org/api
?module=block
&action=getblockreward
&blockno=1807242
&apikey=YourApiKeyToken

Try this endpoint in your browser ๐Ÿ”—

Request Query Parameters

ParameterDescription
blocknothe integer block number to check block rewards for eg. 1807242

Sample Response

{
"status":"1",
"result":{
"blockNumber":"1807242",
"timeStamp":"Mon Mar 13 08:31:54 UTC 2023",
"blockMiner":"0x2efd3cf0733421aec3e4202480d0a90bd1575149",
"blockReward":"3002893221000000000.0",
"uncles":null,
"uncleInclusionReward":null
},
"message":"OK"
}

Get Estimated Block Countdown Time by BlockNoโ€‹

Returns the estimated time remaining, in seconds, until a certain block is validated.

https://openapi.coredao.org/api
?module=block
&action=getblockcountdown
&blockno=2807242
&apikey=YourApiKeyToken

Try this endpoint in your browser ๐Ÿ”—

Request Query Parameters

ParameterDescription
blocknothe integer block number to check the countdown time for eg. 2807242

Sample Response

{
"status":"1",
"result":{
"remainingBlock":"999939",
"estimateTimeInSec":"2999817",
"countdownBlock":"2807242",
"currentBlock":"1807303"
},
"message":"OK"
}

Get Block Number by Timestampโ€‹

Returns the block number that was validated at a certain timestamp.

https://openapi.coredao.org/api
?module=block
&action=getblocknobytime
&timestamp=1678581398
&closest=before
&apikey=YourApiKeyToken

Try this endpoint in your browser ๐Ÿ”—

Request Query Parameters

ParameterDescription
timestampthe integer representing the Unix timestamp in seconds.
closestthe closest available block to the provided timestamp, either before or after

Sample Response

{
"status":"1",
"result":1768937,
"message":"OK"
}