Skip to main content

Blocks

Get Block Rewards by BlockNo

The status field returns 0 for failed transactions,1 for successful transactions and 2 for pending transactions.

https://api.btrscan.com/scan/api
?module=block
&action=getblockreward
&blockno=426364

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
blocknothe integer block number to check block rewards for eg. 12697906

Get Block Number by Timestamp

[Parameters] timestamp format: Unix timestamp (supports Unix timestamps in seconds), closest value: 'before' or 'after'

https://api.btrscan.com/scan/api
?module=block
&action=getblocknobytime
&timestamp=1715789611
&closest=before

Try this endpoint in your browser 🔗

Query Parameters

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