Saltar al contenido principal

cfx_getBlockRewardInfo

Returns block reward information in an epoch

Params

(1)

1. num (required)

(one of)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

(cfx_getBlockRewardInfo_result)
array of:
author
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
baseReward
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
blockHash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
totalReward
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
txFee
string
Match 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"
}
]

Endpoint

Params

num


Request

curl -X POST --data \
'{
"method": "cfx_getBlockRewardInfo",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com