Blocks
Endpoints with
are under the API Pro subscription. To upgrade your API plan, browse through the BscScan APIs page.

Get Block Rewards by BlockNo

Returns the block reward awarded for validating a certain block.
1
https://api.bscscan.com/api
2
?module=block
3
&action=getblockreward
4
&blockno=2170000
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
blockno
the integer block number to check block rewards for eg. 12697906​
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":{
5
"blockNumber":"2170000",
6
"timeStamp":"1605182836",
7
"blockMiner":"0x68bf0b8b6fb4e317a0f9d6f03eaf8ce6675bc60d",
8
"blockReward":"13657915000000000",
9
"uncles":[
10
11
],
12
"uncleInclusionReward":"0"
13
}
14
}
Copied!
​​
⏳
Tip : The timestamp field is denoted in Unix timestamp.​

Get Estimated Block Countdown Time by BlockNo

Returns the estimated time remaining, in seconds, until a certain block is validated.
1
https://api.bscscan.com/api
2
?module=block
3
&action=getblockcountdown
4
&blockno=11926850
5
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
blockno
the integer block number to estimate time remaining to be validated eg. 12697906​
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":{
5
"CurrentBlock":"10526852",
6
"CountdownBlock":"10926850",
7
"RemainingBlock":"399998",
8
"EstimateTimeInSec":"1240008.8"
9
}
10
}
Copied!

Get Block Number by Timestamp

Returns the block number that was validated at a certain timestamp.
1
https://api.bscscan.com/api
2
?module=block
3
&action=getblocknobytime
4
&timestamp=1601510400
5
&closest=before
6
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
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
​
⏳
Tip : Convert a regular date-time to a Unix timestamp.​
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":"946206"
5
}
Copied!

Get Daily Average Block Size
​

Returns the daily average block size within a date range.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyavgblocksize
4
&startdate=2021-08-01
5
&enddate=2021-08-31
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
startdate
the starting date in yyyy-MM-dd format, eg. 2021-08-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-08-31
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-08-01",
7
"unixTimeStamp":"1627776000",
8
"blockSize_bytes":96364
9
},
10
{
11
"UTCDate":"2021-08-02",
12
"unixTimeStamp":"1627862400",
13
"blockSize_bytes":94832
14
},
15
{
16
"UTCDate":"2021-08-31",
17
"unixTimeStamp":"1630368000",
18
"blockSize_bytes":90159
19
}
20
]
21
}
Copied!

Get Daily Block Count and Rewards
​

Returns the number of blocks validated daily and the amount of block rewards.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyblkcount
4
&startdate=2021-08-01
5
&enddate=2021-08-31
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
startdate
the starting date in yyyy-MM-dd format, eg. 2021-08-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-08-31
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-08-01",
7
"unixTimeStamp":"1627776000",
8
"blockCount":27783,
9
"blockRewards_Eth":"9216.309553593894910979"
10
},
11
{
12
"UTCDate":"2021-08-02",
13
"unixTimeStamp":"1627862400",
14
"blockCount":27941,
15
"blockRewards_Eth":"8474.944904178535758101"
16
},
17
{
18
"UTCDate":"2021-08-31",
19
"unixTimeStamp":"1630368000",
20
"blockCount":28357,
21
"blockRewards_Eth":"7213.736543000372715456"
22
}
23
]
24
}
Copied!

Get Daily Block Rewards
​

Returns the amount of block rewards distributed to validators daily.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyblockrewards
4
&startdate=2021-08-01
5
&enddate=2021-08-31
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
startdate
the starting date in yyyy-MM-dd format, eg. 2021-08-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-08-31
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-08-01",
7
"unixTimeStamp":"1627776000",
8
"blockRewards_Eth":"0"
9
},
10
{
11
"UTCDate":"2021-08-02",
12
"unixTimeStamp":"1627862400",
13
"blockRewards_Eth":"0"
14
},
15
{
16
"UTCDate":"2021-08-31",
17
"unixTimeStamp":"1630368000",
18
"blockRewards_Eth":"0"
19
}
20
]
21
}
Copied!

Get Daily Average Time for A Block to be Included in the BNB Smart Chain
​

Returns the daily average of time needed for a block to be successfully validated.
1
https://api.bscscan.com/api
2
?module=stats
3
&action=dailyavgblocktime
4
&startdate=2021-08-01
5
&enddate=2021-08-31
6
&sort=asc
7
&apikey=YourApiKeyToken
Copied!
Try this endpoint in your browser
πŸ”—
​
Request
Response
Query Parameters
Parameter
Description
startdate
the starting date in yyyy-MM-dd format, eg. 2021-08-01
enddate
the ending date in yyyy-MM-dd format, eg. 2021-08-31
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample Response
1
{
2
"status":"1",
3
"message":"OK",
4
"result":[
5
{
6
"UTCDate":"2021-08-01",
7
"unixTimeStamp":"1627776000",
8
"blockTime_sec":"3.11"
9
},
10
{
11
"UTCDate":"2021-08-02",
12
"unixTimeStamp":"1627862400",
13
"blockTime_sec":"3.09"
14
},
15
{
16
"UTCDate":"2021-08-31",
17
"unixTimeStamp":"1630368000",
18
"blockTime_sec":"3.05"
19
}
20
]
21
}
Copied!