Get Public Chain Details#
Query basic details for a specific chain, including market cap rank, consensus algorithm, mining difficulty, supply, TPS, and latest block height.
Supported chains: see Get Chain Info API Supported Chains (apiName: detail).
Request URL#
GET
https://web3.okx.com/api/v6/explorer/info/detailRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainIndex | String | Yes | Unique identifier of the chain, e.g., 1 for ETH, 0 for BTC. See Get Chain Info API Supported Chains for supported values. |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| chainIndex | String | Unique identifier of the chain. |
| symbol | String | Native token of the chain. |
| rank | String | Market cap rank of the chain. |
| mineable | Boolean | Whether mining is supported, e.g., true / false. |
| algorithm | String | Core algorithm, e.g., SHA-256. |
| consensus | String | Consensus algorithm, e.g., PoW. |
| diffEstimation | String | Estimated next mining difficulty. Unit for BTC: T. |
| currentDiff | String | Current network-wide mining difficulty. |
| diffAdjustTime | String | Time of the next mining difficulty adjustment. |
| circulatingSupply | String | Circulating supply. |
| totalSupply | String | Maximum supply. |
| tps | String | On-chain transactions processed per second, averaged over the past week. |
| lastHeight | String | Latest block height. |
| lastBlockTime | String | Time of the previous block. Unix timestamp in milliseconds, e.g., 1597026383085. |
| issueDate | String | Issue date. Unix timestamp in milliseconds, e.g., 1597026383085. |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v6/explorer/info/detail?chainIndex=0' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
Response Example#
json
{
"code": "0",
"msg": "",
"data": [
{
"chainIndex": "0",
"symbol": "BTC",
"rank": "1",
"mineable": true,
"algorithm": "SHA-256",
"consensus": "PoW",
"diffEstimation": "128.42",
"currentDiff": "126.98",
"diffAdjustTime": "1754563200000",
"circulatingSupply": "19891234",
"totalSupply": "21000000",
"tps": "5.32",
"lastHeight": "908123",
"lastBlockTime": "1753690007000",
"issueDate": "1231006505000"
}
]
}
