get_consensus - Nervos

Return various consensus parameters.

Parameters

  • none

Returns

If any hardfork feature has epoch=null, it means the feature will never be activated.

Example

Request

curl --location --request POST 'https://ckb-mirana.unifra.io/v1/4fb36720a57340d39aee4cf68511064a' \
--header 'Content-Type: application/json' \
--data-raw '{
  "id": 42,
  "jsonrpc": "2.0",
  "method": "get_consensus",
  "params": []
}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "block_version": "0x0",
        "cellbase_maturity": "0x10000000004",
        "dao_type_hash": "0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e",
        "epoch_duration_target": "0x3840",
        "genesis_hash": "0x92b197aa1fba0f63633922c61c92375c9c074a93e85963554f5499fe1450d0e5",
        "hardfork_features": [
            {
                "epoch_number": "0x1526",
                "rfc": "0028"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0029"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0030"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0031"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0032"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0036"
            },
            {
                "epoch_number": "0x0",
                "rfc": "0038"
            }
        ],
        "id": "ckb",
        "initial_primary_epoch_reward": "0xae6c73c3e070",
        "max_block_bytes": "0x91c08",
        "max_block_cycles": "0xd09dc300",
        "max_block_proposals_limit": "0x5dc",
        "max_uncles_num": "0x2",
        "median_time_block_count": "0x25",
        "orphan_rate_target": {
            "denom": "0x28",
            "numer": "0x1"
        },
        "permanent_difficulty_in_dummy": false,
        "primary_epoch_reward_halving_interval": "0x2238",
        "proposer_reward_ratio": {
            "denom": "0xa",
            "numer": "0x4"
        },
        "secondary_epoch_reward": "0x37d0c8e28542",
        "secp256k1_blake160_multisig_all_type_hash": "0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8",
        "secp256k1_blake160_sighash_all_type_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
        "tx_proposal_window": {
            "closest": "0x2",
            "farthest": "0xa"
        },
        "tx_version": "0x0",
        "type_id_code_hash": "0x00000000000000000000000000000000000000000000000000545950455f4944"
    },
    "id": 42
}
Language
Click Try It! to start a request and see the response here!