Skip to main content

Blocks

Get Block Number by Timestamp

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

https://gatescan.org/api
?module=block
&action=getblocknobytime
&timestamp=1629874109
&closest=before
&apikey=YourApiKeyToken

Try this endpoint in your broswer

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

Get Daily Average Block Size

Returns the daily average block size within a date range.

https://gatescan.org/api
?module=stats
&action=dailyavgblocksize
&startdate=2022-01-01
&enddate=2022-01-02
&sort=asc
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
startdatethe starting date in yyyy-MM-dd format, eg. 2022-01-01
enddatethe enddate date in yyyy-MM-dd format, eg. 2022-01-01
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Block Count and Rewards

Returns the number of blocks mined daily and the amount of block rewards.

https://gatescan.org/api
?module=stats
&action=dailyblkcount
&startdate=2022-01-01
&enddate=2022-01-02
&sort=asc
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
startdatethe starting date in yyyy-MM-dd format, eg. 2022-01-01
enddatethe enddate date in yyyy-MM-dd format, eg. 2022-01-01
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Block Rewards

Returns the number of blocks mined daily and the amount of block rewards.

https://gatescan.org/api
?module=stats
&action=dailyblkcount
&startdate=2022-01-01
&enddate=2022-01-02
&sort=asc
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
startdatethe starting date in yyyy-MM-dd format, eg. 2022-01-01
enddatethe enddate date in yyyy-MM-dd format, eg. 2022-01-01
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Last updated on 2025/06/05