FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Other
TEXT MESSAGE
0/300
⚡ Test Our Private Nodes of 40+ Blockchains just for $50!
Method: POST get_block_economic_state
Returns increased issuance, miner reward, and the total transaction fee of a block. This RPC returns null if the block is not in the canonical chain. CKB delays CKB creation for miners. The output cells in the cellbase of block N are for the miner creating block N - 1 - ProposalWindow.farthest. In mainnet, ProposalWindow.farthest is 10, so the outputs in block 100 are rewards for miner creating block 89. Because of the delay, this RPC returns null if the block rewards are not finalized yet. For example, the economic state for block 89 is only available when the number returned by get_tip_block_number is greater than or equal to 100.
block_hash
- string
Specifies the block hash which rewards should be analyzed.
curl --location --request POST 'https://ckb.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "get_block_economic_state", "params": ["0xe8038094a1e2c82c45401e2089ec28f0f99b0b71eb385307e4f3c3a54c643294"], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "finalized_at": "0xdd4f73b92018022965aa3d153f157fd8c2b41f865c1c7dc87c8251ff4d7d2a59", "issuance": { "primary": "0x24a1619ac0", "secondary": "0xbb8c312cd" }, "miner_reward": { "committed": "0xab8", "primary": "0x24a1619ac0", "proposal": "0x76de1", "secondary": "0x13e2705f0" }, "txs_fee": "0x11dd" } }