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
Parameter | Type | Required | Description |
---|---|---|---|
blockno | Integer | Yes | The block number you want to query. |
Sample Response
{
"status": "1",
"message": "OK",
"result": {
"blockMiner": "0x56e3a565e31f8fb0ba0b12c03355518c64372120",
"blockNumber": "123",
"blockReward": "9600000000000000000",
"timeStamp": "1561462973"
}
}
Response
Field | Type | Description |
---|---|---|
status | String | 1 for success, 0 for failure. |
message | String | OK for success, or a descriptive error message. |
result | String | JSON string containing the ABI of the verified contract, which can be parsed and used directly. |