Blocks
Get Block And Uncle Rewards by BlockNo
Returns the block reward and 'Uncle' block rewards.
https://api-sepolia.sophscan.xyz/api
?module=block
&action=getblockreward
&blockno=1000
&apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
the integer
block number to check block rewards for eg. 12697906
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": {
"blockNumber": "1000",
"timeStamp": "1720828091",
"blockMiner": "0x0000000000000000000000000000000000000000",
"blockReward": "0",
"uncles": [],
"uncleInclusionReward": "0"
}
}
Get Estimated Block Countdown Time by BlockNo
Returns the estimated time remaining, in seconds, until a certain block is mined.
https://api-sepolia.sophscan.xyz/api
?module=block
&action=getblockcountdown
&blockno=1000000
&apikey=YourApiKeyToken
Query Parameters
the integer
block number to estimate time remaining to be mined eg. 12697906
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": {
"CurrentBlock": "47036",
"CountdownBlock": "1000000",
"RemainingBlock": "952964",
"EstimateTimeInSec": "48887068.2"
}
}
Get Block Number by Timestamp
Returns the block number that was mined at a certain timestamp.
https://api-sepolia.sophscan.xyz/api
?module=block
&action=getblocknobytime
×tamp=1728319745
&closest=before
&apikey=YourApiKeyToken
Query Parameters
the integer
representing the Unix timestamp in seconds.
the closest available block to the provided timestamp, either before
or after
Sample Response
{
"status":"1",
"message":"OK",
"result":"46244"
}