FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST get_block
Returns the information about a block by hash.
block_hash
- string
the block hash
verbosity
- integer
result format which allows 0 and 2. (Optional, the default is 2.)
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"}'
{ "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": [ { "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" ] } ], "uncles": [] } }