⚡ We welcome businesses to test our enterprise-grade service

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST get_blockchain_info

dropdown

方法 RPC get_blockchain_info 例如 Nervos Network (CKB)

POST get_blockchain_info

返回有关链条的统计数据。

Parameters

-

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "alerts": [],
        "chain": "ckb",
        "difficulty": "0xdc7f2e97b6e02a7",
        "epoch": "0x4c304950016ee",
        "is_initial_block_download": false,
        "median_time": "0x182352288ec"
    }
}