Blocks
Returns the block reward and 'Uncle' block rewards.
https://api-ropsten.etherscan.io/api
?module=block
&action=getblockreward
&blockno=11275005
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
blockno | the integer block number to check block rewards for eg. 12697906 |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"blockNumber":"11275005",
"timeStamp":"1634837942",
"blockMiner":"0xe9e7034aed5ce7f5b0d281cfe347b8a5c2c53504",
"blockReward":"2221181611857171000",
"uncles":[
],
"uncleInclusionReward":"0"
}
}
Returns the estimated time remaining, in seconds, until a certain block is mined.
https://api-ropsten.etherscan.io/api
?module=block
&action=getblockcountdown
&blockno=11375005
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
blockno | the integer block number to estimate time remaining to be mined eg. 12697906 |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"CurrentBlock":"11275012",
"CountdownBlock":"11375005",
"RemainingBlock":"99993",
"EstimateTimeInSec":"1119936.6"
}
}
Returns the block number that was mined at a certain timestamp.
https://api-ropsten.etherscan.io/api
?module=block
&action=getblocknobytime
×tamp=1634838142
&closest=before
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
timestamp | the integer representing the Unix timestamp in seconds. |
closest | the closest available block to the provided timestamp, either before or after |
Sample Response
{
"status":"1",
"message":"OK",
"result":"11275018"
}
Last modified 1yr ago