⚡ We welcome businesses to test our enterprise-grade service

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_block_economic_state

dropdown

方法 RPC get_block_economic_state 例如 Nervos Network (CKB)

POST get_block_economic_state

收益增加发行,矿工奖励以及一个块的总交易费。 如果块不在规范链中,则此RPC将返回空。 CKB延迟了矿工的CKB创建。 块n的蜂窝基群中的输出单元是针对矿工创建块n -1 -proposalwindow.farthest的。 在Mainnet中,proposalwindow.farthest是10,因此块100中的输出对于矿工创建块89的奖励是奖励。由于延迟,如果块奖励尚未最终确定,则此RPC返回null。 例如,仅当get_tip_block_number返回的数字大于或等于100时,块89的经济状态才能使用。

Parameters

block_hash - 细绳

指定应该分析奖励的块哈希。

Request

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"}'


Response

{
    "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"
    }
}