⚡ We welcome businesses to test our enterprise-grade service

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_block

dropdown

方法 RPC get_block 例如 Nervos Network (CKB)

POST get_block

通过哈希返回有关块的信息。

Parameters

block_hash - 细绳

块哈希

verbosity - 整数

结果格式允许0和2。(可选,默认值为2。)

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",
"params": ["0xe8038094a1e2c82c45401e2089ec28f0f99b0b71eb385307e4f3c3a54c643294", null],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "header": {
            "compact_target": "0x19129384",
            "dao": "0x3583b4d01a9b404300d0696f55d326006633b9b39fbbfa0300c9c2ce0e5f2107",
            "epoch": "0x4c300ec0016ee",
            "extra_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "hash": "0xe8038094a1e2c82c45401e2089ec28f0f99b0b71eb385307e4f3c3a54c643294",
            "nonce": "0x23746dab00000000b59000007f44020c",
            "number": "0x75a843",
            "parent_hash": "0xb1d7c5ae609ed8e168fdf6188ce697ced363b5cb7b7ac58745a7fadfa3eeeacb",
            "proposals_hash": "0x12efb0ca6d3aa1781085382057164e2c1836768a22b96e8807b9c935b8d6a737",
            "timestamp": "0x18234744d6e",
            "transactions_root": "0xfbfb8dd8da57bbbc0c4de3955a7edb4211c5615bc37b6adbf006bd5ed9028d7a",
            "version": "0x0"
        },
        "proposals": [
            "0x4bc90ac603531614f44a",
            "0xd260e44324493be4ad2c",
            "0xebb7245909026465114e"
        ],
        "transactions": [
            {
                "cell_deps": [],
                "hash": "0xe8a106be755bdb9fa0b452297edb5785f6d901f8a3b5f74044ab2f5d8cfb0ed1",
                "header_deps": [],
                "inputs": [
                    {
                        "previous_output": {
                            "index": "0xffffffff",
                            "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000000"
                        },
                        "since": "0x75a843"
                    }
                ],
                "outputs": [
                    {
                        "capacity": "0x25df894304",
                        "lock": {
                            "args": "0xdde7801c073dfb3464c7b1f05b806bb2bbb84e99",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": null
                    }
                ],
                "outputs_data": [
                    "0x"
                ],
                "version": "0x0",
                "witnesses": [
                    "0x800000000c00000055000000490000001000000030000000310000009bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce80114000000dde7801c073dfb3464c7b1f05b806bb2bbb84e9927000000302e3130332e302028353161383134612d646972747920323032322d30342d3230292000000000"
                ]
            },
            {
                "cell_deps": [
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0xe9116d651c371662b6e29e2102422e23f90656b8619df82c48b782ff4db43a37"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x5fe11c5033f7494667f23ae8759762f196105eb3240d26a65f805831b4b26a16"
                        }
                    },
                    {
                        "dep_type": "dep_group",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
                        }
                    }
                ],
                "hash": "0x66efb1d569ca38f5f505edaef3032d8c1727d2481638585806e6de497bc868d7",
                "header_deps": [],
                "inputs": [
                    {
                        "previous_output": {
                            "index": "0x0",
                            "tx_hash": "0xbe7cdf0e7ea67d6242dc6aa136cee89e7c09d8262d987c2865a4a4eb4cc20d33"
                        },
                        "since": "0x0"
                    },
                    {
                        "previous_output": {
                            "index": "0x1",
                            "tx_hash": "0x51d27d048a9aa04fbbea4c69211e3394d620fa0c21ba8b8cfa2ff9a09227b9da"
                        },
                        "since": "0x75a83f"
                    },
                    {
                        "previous_output": {
                            "index": "0x2",
                            "tx_hash": "0x7f2251b60580ee08814bb47a6d9af9e8cc762e2e4b78fa943d1ac0e1135442c4"
                        },
                        "since": "0x0"
                    }
                ],
                "outputs": [
                    {
                        "capacity": "0x9502f9000",
                        "lock": {
                            "args": "0xfed559f2f93e5e7958d8a62b0b148cb18bc484bf",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": {
                            "args": "0x02",
                            "code_hash": "0x3a468d53352eb855521dabed0dc7036929bfe72766ad58f801edfbae564f7b43",
                            "hash_type": "type"
                        }
                    },
                    {
                        "capacity": "0x9502f9000",
                        "lock": {
                            "args": "0xfed559f2f93e5e7958d8a62b0b148cb18bc484bf",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": {
                            "args": "0x02",
                            "code_hash": "0x9e537bf5b8ec044ca3f53355e879f3fd8832217e4a9b41d9994cf0c547241a79",
                            "hash_type": "type"
                        }
                    },
                    {
                        "capacity": "0x4376978ba0",
                        "lock": {
                            "args": "0xfed559f2f93e5e7958d8a62b0b148cb18bc484bf",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": null
                    }
                ],
                "outputs_data": [
                    "0x0b0c",
                    "0x0b02000000000075a83f",
                    "0x"
                ],
                "version": "0x0",
                "witnesses": [
                    "0x5500000010000000550000005500000041000000c314e7ff4e2d6261d69665f49e0000c44412c7f9670999f46296a40f707f61e246e2bc272aadc5dec6a180ed4cd851215e9d625b40e4e7534cd1bad8337fa1a800",
                    "0x10000000100000001000000010000000",
                    "0x10000000100000001000000010000000"
                ]
            },
            {
                "cell_deps": [
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0xe9116d651c371662b6e29e2102422e23f90656b8619df82c48b782ff4db43a37"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x5fe11c5033f7494667f23ae8759762f196105eb3240d26a65f805831b4b26a16"
                        }
                    },
                    {
                        "dep_type": "dep_group",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
                        }
                    }
                ],
                "hash": "0x6676e2b8d46b4f89cb686c46b574ef758e255e7e88f2c16b7179f5019f0c94c6",
                "header_deps": [],
                "inputs": [
                    {
                        "previous_output": {
                            "index": "0x0",
                            "tx_hash": "0xf2803589065d052ea2d08e18937b5ec4b6754b3ea5d9bb649029a3408b215067"
                        },
                        "since": "0x0"
                    },
                    {
                        "previous_output": {
                            "index": "0x1",
                            "tx_hash": "0xf684d9e53d5b21e3a5f4a4661198dffb5b4755c69a95478c69c491135e029fd4"
                        },
                        "since": "0x0"
                    },
                    {
                        "previous_output": {
                            "index": "0x2",
                            "tx_hash": "0xda69de2ede713d4cbc59ecee6502dbfae939233afa6a9428cb5d734a2fda4c0d"
                        },
                        "since": "0x0"
                    }
                ],
                "outputs": [
                    {
                        "capacity": "0x9502f9000",
                        "lock": {
                            "args": "0xc45a83ea851eae30307ff47918ca3d2dabca7e52",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": {
                            "args": "0x00",
                            "code_hash": "0x3a468d53352eb855521dabed0dc7036929bfe72766ad58f801edfbae564f7b43",
                            "hash_type": "type"
                        }
                    },
                    {
                        "capacity": "0x9502f9000",
                        "lock": {
                            "args": "0xc45a83ea851eae30307ff47918ca3d2dabca7e52",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": {
                            "args": "0x00",
                            "code_hash": "0x9e537bf5b8ec044ca3f53355e879f3fd8832217e4a9b41d9994cf0c547241a79",
                            "hash_type": "type"
                        }
                    },
                    {
                        "capacity": "0x252e671710",
                        "lock": {
                            "args": "0xc45a83ea851eae30307ff47918ca3d2dabca7e52",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": null
                    }
                ],
                "outputs_data": [
                    "0x080c",
                    "0x08000000000000000f8c",
                    "0x"
                ],
                "version": "0x0",
                "witnesses": [
                    "0x55000000100000005500000055000000410000003d471e4c87cb3684adbea9c46564841981be6cab3d9c1deb1cba464aa46e72e01baa1196d379972a1f3eeb24a52f76d84275b6be6de318aa37054752486dba2001",
                    "0x10000000100000001000000010000000",
                    "0x10000000100000001000000010000000"
                ]
            },
            {
                "cell_deps": [
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x71b55e3641fdc8d00d9943a93b2c6e6ab42f7e57909009c2a1ad5c234956cdc5"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x9f8e73e096f1583696760281004d71dc0cebd3c9aa6fb584949facde6e543e67"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0xd891e0e8c4864c730cc4b96b450ed1bcaf42e74c9eb1a38fb193caaf490f9a3d"
                        }
                    },
                    {
                        "dep_type": "dep_group",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x625696834db4320214a8af09de74fd51fc8a83be69d920243f8ccd219071473b"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0xc7813f6a415144643970c2e88e0bb6ca6a8edc5dd7c1022746f628284a9936d5"
                        }
                    },
                    {
                        "dep_type": "code",
                        "out_point": {
                            "index": "0x0",
                            "tx_hash": "0x2e46a10a67987594d4eaee2d5f9ac96ce651f7bfb44e82c286a12a1950ad4f29"
                        }
                    }
                ],
                "hash": "0xa01e11c5dd8c0b89eaa3f4f6340aa212dc24b7f5530dcfbe0b1c34400ef91947",
                "header_deps": [],
                "inputs": [
                    {
                        "previous_output": {
                            "index": "0x0",
                            "tx_hash": "0x872b17318637438aa87c8f831b4ea302ba5837635a00b396569a003f5933a10e"
                        },
                        "since": "0x4000000062de5224"
                    },
                    {
                        "previous_output": {
                            "index": "0x1",
                            "tx_hash": "0x872b17318637438aa87c8f831b4ea302ba5837635a00b396569a003f5933a10e"
                        },
                        "since": "0x0"
                    },
                    {
                        "previous_output": {
                            "index": "0x2",
                            "tx_hash": "0x872b17318637438aa87c8f831b4ea302ba5837635a00b396569a003f5933a10e"
                        },
                        "since": "0x0"
                    },
                    {
                        "previous_output": {
                            "index": "0x3",
                            "tx_hash": "0x872b17318637438aa87c8f831b4ea302ba5837635a00b396569a003f5933a10e"
                        },
                        "since": "0x0"
                    }
                ],
                "outputs": [
                    {
                        "capacity": "0x7676d7e00",
                        "lock": {
                            "args": "0x0075c62406c6b180d8ffe96400d7f08e6e89d186dc00",
                            "code_hash": "0xa4398768d87bd17aea1361edc3accd6a0117774dc4ebc813bfa173e8ac0d086d",
                            "hash_type": "type"
                        },
                        "type": {
                            "args": "0xab21bfe2bf85927bb42faaf3006a355222e24d5ea1d4dec0e62f53a8e0c04690",
                            "code_hash": "0xfef1d086d9f74d143c60bf03bd04bab29200dbf484c801c72774f2056d4c6718",
                            "hash_type": "type"
                        }
                    },
                    {
                        "capacity": "0xdf8475800",
                        "lock": {
                            "args": "0x1ca35cb5fda4bd542e71d94a6d5f4c0d255d6d6fba73c41cf45d2693e59b307280d6acef972db4688408a5e196f92eb0457ca003d9aa1c45ff05056b429b353993d3000000000000",
                            "code_hash": "0xb619184ab9142c51b0ee75f4e24bcec3d077eefe513115bad68836d06738fd2c",
                            "hash_type": "type"
                        },
                        "type": null
                    },
                    {
                        "capacity": "0x8d6a469ff3641",
                        "lock": {
                            "args": "0x1ca35cb5fda4bd542e71d94a6d5f4c0d255d6d6fba73c41cf45d2693e59b3072ad00000010000000300000003800000000000000000000000000000000000000000000000000000000000000000000000000000000000000750000001400000034000000690000007100000000000000000000000000000000000000000000000000000000000000000000003500000010000000300000003100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                            "code_hash": "0x000f87062a2fe9bb4a6cc475212ea11014b84deb32e0375ee51e6ec4a553e009",
                            "hash_type": "type"
                        },
                        "type": null
                    },
                    {
                        "capacity": "0x66693779be",
                        "lock": {
                            "args": "0x75c62406c6b180d8ffe96400d7f08e6e89d186dc",
                            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                            "hash_type": "type"
                        },
                        "type": null
                    }
                ],
                "outputs_data": [
                    "0xd6eea74bbbde42287e71e5831f6869d06c3f9711af2f5001546e71f808e69a0d726bff4ba96f589e1f89495ba74247be3a7e6fd349d834f294f265599a932311f10800000bd21849bfcffcaf9390ec8716072d64994801d66ee4902d6f72999bd7700bb794d30000000000000000000000000000000000000000000000000000000000000000000000000000ef1408b8b106acfc3fcd88608db0bb0fa46fab6933373fffdcdc6fe0a8b529aa53da703482010000f3910000000000000001",
                    "0x",
                    "0x",
                    "0x"
                ],
                "version": "0x0",
                "witnesses": [
                    "0x3d0300001000000069000000690000005500000055000000100000005500000055000000410000005c732c513d1b47ed25a418ced877cc213fee15ec5e4ae8d6865aa7b95c66e84a7acea25bb8fdc51108270bcd7160ef4e27b898f731432b1d83bbe598fe52e27401d002000000000000cc02000010000000c4020000c8020000b40200001c0000006c010000700100007401000078010000b0020000500100002c000000340000005400000074000000940000009c000000c0000000e4000000e80000000c01000093d30000000000001c0000000200000014000000b8cde090e6a4741b6450308fad1dc338c53936a08a5ef143bee1ea550cc76a6ea4c83922c87e195cd158f19b91b309357c25652680d6acef972db4688408a5e196f92eb0457ca003d9aa1c45ff05056b429b353953da703482010000726bff4ba96f589e1f89495ba74247be3a7e6fd349d834f294f265599a932311f1080000726bff4ba96f589e1f89495ba74247be3a7e6fd349d834f294f265599a932311f10800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010bd46259d4800598659848e94fb99f829a74e9cce039c77c2547c354abc57ef000000000000000004000000340100004c508a5ef143bee1ea550cc76a6ea4c83922c87e195cd158f19b91b309357c25652650428970b6b783fc704d238ad31b9174cd2ecf8bb930f7c38ac0a80a09c964471a4f0250b4c51c42f9a5ffac5cdc39317812d4766d6eb06fd2528bf459a223e0f7e508d24f0250afce13997d46a552c52e76eb32be4021775deef323183b75515ec1b211bf2796502f133b74074e71c8d7caa535b29705e77af97a610fba2e62ccf7d7f03c7e84ff503334d931d591245488209c0eefcfd1f322b4db8a1fa5a0cd7bb43b155438c5614f02505e4bf6efcc025f6e260ea72a060ec0864920055d676c2aa689b27e4e1a865e144f0150f9a281e78be6ee1bb4165c52d3476a05979997e7672caa3d52b3ca4678b9b81a50fa5659cc457d62671c73c26013d5a99ffbddf6b74e89483db89aefb18839929b4ff0040000000000000000000000",
                    "0x55000000100000005500000055000000410000001cf4c8cab86e16be070b453b0a5df94c4764ae846317c132051aaa537e02a6b958785ac125e5d0ff174d55395281f1bb916dc7861fbb49720b6117b4fba064d701",
                    "0x55000000100000005500000055000000410000001cf4c8cab86e16be070b453b0a5df94c4764ae846317c132051aaa537e02a6b958785ac125e5d0ff174d55395281f1bb916dc7861fbb49720b6117b4fba064d701",
                    "0x55000000100000005500000055000000410000001cf4c8cab86e16be070b453b0a5df94c4764ae846317c132051aaa537e02a6b958785ac125e5d0ff174d55395281f1bb916dc7861fbb49720b6117b4fba064d701"
                ]
            }
        ],
        "uncles": []
    }
}