Block
module = block
Get Countdown to Block
Get the number of remaining blocks and the estimated remaining time in seconds until a particular block is mined.
Query Parameters
Name
Type
Description
blockno
number
required
The block to countdown to
Example
https://rest-api.ethvm.dev/?module=block&action=getblockcountdown&blockno=100000000000
Response
{
"status": "1",
"message": "OK",
"result": {
"CurrentBlock": "19869947",
"CountdownBlock": "99999999",
"EstimateTimeInSec": "1001625650",
"RemainingBlock": "80130052"
}
}
Get Block Number By Timestamp
Returns block number by timestamp
Query Parameters
Name
Type
Description
timestamp
number
required
unix timestamp
closest
string
values: before , after
default: before
return block closest to before or after the timestamp
Example
https://rest-api.ethvm.dev/?module=block&action=getblocknobytime×tamp=1715510984&closest=after
Response
{
"status": "1",
"message": "OK",
"result": "19853451"
}
Last updated