CKB Explorer English
  1. v1
CKB Explorer English
  • v1
    • Statistics
      • Statistic Info Charts
      • Daily Statistics
      • Block Statistics
      • Epoch Statistics
      • Statistics
      • Tip Block Number
    • Block List
      GET
    • Block by number or hash
      GET
    • Address
      GET
    • Transaction
      GET
    • Transaction List
      GET
    • UDT List
      GET
    • UDT
      GET
    • Udt Transaction List
      GET
    • Block Transaction List
      GET
    • Address Transaction List
      GET
    • Contract Transaction List
      GET
  • v2
    • NFT
      • NFT Hodlers List
      • NFT Collection List
      • NFT Collection
      • NFT Item
      • NFT Item List
      • NFT Transfer List
    • CoTA
      • Issuer of CoTA
      • CoTA NFT Class
      • Sender of CoTA NFT Item
      • Claim Status
      • Minted CoTA NFT Class by a specific issuer
      • CoTA Transaction List
    • Cell List
      GET
    • Live Cell List
      GET
    • Bit Accounts
      POST
    • Bit Accounts Copy
      POST
    • DAO Events of an address
      GET
    • Transactions referring to a specific script
      GET
    • Referring cells of a script
      GET
    • Deployed cells of a script
      GET
    • Script Info
      GET
    • Miner Versions Distribution
      GET
    • Pending Transaction List
      GET
    • Transaction Fees
      GET
  1. v1

Block by number or hash

GET
/blocks/{id}
Chinese version: https://www.apifox.cn/web/project/962207

Request

Path Params
id
integer 
required
Block number on the chain, e.g. 1 or 0x9b2f4e7113402edc91e5f1103b8827e5bb2ee3186a78f29cdddcd98cfbf7f091
Example:
1
Header Params
Accept
string 
optional
Example:
application/vnd.api+json
Content-Type
string 
optional
Example:
application/vnd.api+json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mainnet-api.explorer.nervos.org/api/v1/blocks/1' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
data
object 
required
id
string 
required
type
string 
required
attributes
object 
required
Example
{
  "data": {
    "id": "string",
    "type": "string",
    "attributes": {
      "block_hash": "string",
      "uncle_block_hashes": null,
      "miner_hash": "string",
      "transactions_root": "string",
      "reward_status": "string",
      "received_tx_fee_status": "string",
      "miner_message": null,
      "number": "string",
      "start_number": "string",
      "length": "string",
      "version": "string",
      "proposals_count": "string",
      "uncles_count": "string",
      "timestamp": "string",
      "reward": "string",
      "cell_consumed": "string",
      "total_transaction_fee": "string",
      "transactions_count": "string",
      "total_cell_capacity": "string",
      "received_tx_fee": "string",
      "epoch": "string",
      "block_index_in_epoch": "string",
      "nonce": "string",
      "difficulty": "string",
      "miner_reward": "string",
      "size": 0,
      "largest_block_in_epoch": null,
      "largest_block": 0,
      "cycles": null,
      "max_cycles_in_epoch": null,
      "max_cycles": 0
    }
  }
}
Modified at 2023-02-28 02:59:47
Previous
Block List
Next
Address
Built with