Comment on page
Blocks
Returns the block reward and 'Uncle' block rewards.
https://api.arbiscan.io/api
?module=block
&action=getblockreward
&blockno=131049
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
blockno |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"blockNumber":"131049",
"timeStamp":"1626658757",
"blockMiner":"0x0000000000000000000000000000000000000000",
"blockReward":"391758400000000",
"uncles":[
],
"uncleInclusionReward":"0"
}
}
Returns the estimated time remaining, in seconds, until a certain block is mined.
https://api.arbiscan.io/api
?module=block
&action=getblockcountdown
&blockno=22157153
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
blockno |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"CurrentBlock":"22157190",
"CountdownBlock":"24157153",
"RemainingBlock":"1999963",
"EstimateTimeInSec":"600003.9"
}
}
Returns the block number that was mined at a certain timestamp.
https://api.arbiscan.io/api
?module=block
&action=getblocknobytime
×tamp=1661517573
&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":"21403544"
}
Last modified 1yr ago