cfx_getBlockRewardInfo
Returns block reward information in an epoch
Params
(1)1. num (required)
U64
(one of)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(cfx_getBlockRewardInfo_result)array of:
author
stringMatch pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
baseReward
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
blockHash
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
totalReward
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
txFee
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Examples
Request
curl -X POST --data \
'{
"method": "cfx_getBlockRewardInfo",
"params": [
"0x4350b21"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
[
{
"author": "CFXTEST:TYPE.USER:AAMJXDGZ4M84HJVF2S9RMW5UZD4DKH8AA6KRDSH0EP",
"baseReward": "0x1bc0b7812dd38000",
"blockHash": "0x65edf7f1e1ffec4fd0eca4a2a6efb127b11d887dc7ca522ff75e418fda32d160",
"totalReward": "0x1bc297bf33e95087",
"txFee": "0x0"
}
]