API Reference

cfx_getBlockRewardInfo - Conflux

Returns the reward info for all executed blocks in the specified epoch.

Parameters


Returns

Array - array of reward info objects

  • blockHash: DATA - the block hash
  • author: BASE32 - the address of block miner
  • totalReward: QUANTITY - total reward of the block including base reward, tx fee, staking reward
  • baseReward: QUANTITY - base reward
  • txFee: QUANTITY - tx fee

Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getBlockRewardInfo","params":["latest_checkpoint"]
 "id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
  "jsonrpc": "2.0",
  "result": [
    {
      "author": "CFX:TYPE.USER:AAJJ1B1GM7K51MHZM80CZCX31KWXRM2F6JXVY30MVK",
      "baseReward": "0x1b93f3df11a80000",
      "blockHash": "0x630ce1f5df9626b0c78f8561a8bb7ca0588a48cbb7adf5c0ba6ed573a3fa81b4",
      "totalReward": "0x1b9ac1577bdc1ade",
      "txFee": "0x0"
    },
    {
      "author": "CFX:TYPE.USER:AAT39E4U9HJUR56FJFX9RV0GBP0NSK74P6TGGZE9SV",
      "baseReward": "0x1bb60f053f800000",
      "blockHash": "0x75bc794df3d082c8a44af66e19d53ba1caa7e57a19ef3a031e365eb7a24f0fe2",
      "totalReward": "0x1bbce4e75d8a4ef0",
      "txFee": "0x0"
    },
    {
      "author": "CFX:TYPE.USER:AAJJ1B1GM7K51MHZM80CZCX31KWXRM2F6JXVY30MVK",
      "baseReward": "0x1b93f3df11a80000",
      "blockHash": "0xfa8cddda9f2f345cdbed1f3a6ee1520e1091e8c9ec309d3d0fc5e05aa540ac28",
      "totalReward": "0x1b9ac1577bdc1ade",
      "txFee": "0x0"
    },
    {
      "author": "CFX:TYPE.USER:AAJJ1B1GM7K51MHZM80CZCX31KWXRM2F6JXVY30MVK",
      "baseReward": "0x1b93f3df11a80000",
      "blockHash": "0xfe44d42c14f37320d1318e41d06fa061d0226e637a7ff889d3600e78fde0bf7f",
      "totalReward": "0x1b9ac1577bdc1ade",
      "txFee": "0x0"
    },
    {
      "author": "CFX:TYPE.USER:AAMJY3ABAE3J0UD8YS0NPT38GGNUNK5R4PS2PG8VCC",
      "baseReward": "0x1bc16d674ec80000",
      "blockHash": "0x435b330dc8cfea3160a702ded396a6ef524cf9cbf71d80e871dd2d6c5bd5ff2a",
      "totalReward": "0x1c360d7a36fe4af6",
      "txFee": "0x6dc762e38f4000"
    }
  ],
  "id": 0
}
Language
URL
Click Try It! to start a request and see the response here!