CKB-Explorer API documentation version v1
https://explorer.nervos.org
/blocks
get
Returns blocks in reverse chronological order.
get /blocks
Returns blocks in reverse chronological order.
Query Parameters
- page_size: required(integer - default: 10)
- page: required(integer - default: 1)
HTTP status code 200
Body
Media type: application/vnd.api+json
Type: object
Properties- meta: required(object)
- total: required(integer)
- data: required(array of block)
Items: block
- id: required(string)
- type: required(string)
- attributes: required(object)
- block_hash: required(string - minLength: 66 - maxLength: 66)
- number: required(string)
- transactions_count: required(string)
- proposals_count: required(string)
- uncles_count: required(string)
- uncle_block_hashes: required(array of string)
- reward: required(string)
- total_transaction_fee: required(string)
- cell_consumed: required(string)
- total_cell_capacity: required(string)
- miner_hash: required(string - minLength: 66 - maxLength: 66)
- timestamp: required(string)
- difficulty: required(string)
- version: required(string)
- nonce: required(string)
- proof: required(string)
- reward_status: required(one of pending, issued)
- received_tx_fee_status: required(one of pending, calculated)
- received_tx_fee: required(string)
- links: required(object)
- self: required(string)
- first: required(string)
- prev: required(string)
- next: required(string)
- last: required(string)
Example:
{
+ CKB-Explorer API documentation version v1
https://explorer.nervos.org
Introduction
These are the APIs that serve the Explorer, we do not provide external services and cannot guarantee service availability. It is recommended to maintain the ckb node by yourself.
/blocks
getReturns blocks in reverse chronological order.
get /blocks
Returns blocks in reverse chronological order.
Query Parameters
- page_size: required(integer - default: 10)
- page: required(integer - default: 1)
HTTP status code 200
Body
Media type: application/vnd.api+json
Type: object
Properties- meta: required(object)
- total: required(integer)
- data: required(array of block)
Items: block
- id: required(string)
- type: required(string)
- attributes: required(object)
- block_hash: required(string - minLength: 66 - maxLength: 66)
- number: required(string)
- transactions_count: required(string)
- proposals_count: required(string)
- uncles_count: required(string)
- uncle_block_hashes: required(array of string)
- reward: required(string)
- total_transaction_fee: required(string)
- cell_consumed: required(string)
- total_cell_capacity: required(string)
- miner_hash: required(string - minLength: 66 - maxLength: 66)
- timestamp: required(string)
- difficulty: required(string)
- version: required(string)
- nonce: required(string)
- proof: required(string)
- reward_status: required(one of pending, issued)
- received_tx_fee_status: required(one of pending, calculated)
- received_tx_fee: required(string)
- links: required(object)
- self: required(string)
- first: required(string)
- prev: required(string)
- next: required(string)
- last: required(string)
Example:
{
"meta": {
"total": 100
},