Skip to main content

Blocks

Get block reward by block number

This API endpoint allows you to retrieve the reward for a specific block on the blockchain by providing the block number.


Endpoint

GET

https://mainnet-oapi.kaiascan.io/api?module=block&action=getblockreward&blockno={blockNumber}

Request Parameters

ParameterTypeRequiredDescription
blocknoIntegerYesThe block number you want to query.

Sample Response

{
"status": "1",
"message": "OK",
"result": {
"blockMiner": "0x56e3a565e31f8fb0ba0b12c03355518c64372120",
"blockNumber": "123",
"blockReward": "9600000000000000000",
"timeStamp": "1561462973"
}
}

Response

FieldTypeDescription
statusString1 for success, 0 for failure.
messageStringOK for success, or a descriptive error message.
resultStringJSON string containing the ABI of the verified contract, which can be parsed and used directly.