Get Public Chain Summary#
Query summary information for a chain, including latest block height, latest block time, circulating supply, and total transaction count. chainIndex is optional: if omitted, a summary for every supported chain is returned, one chain per row.
Supported chains: see Get Chain Info API Supported Chains (apiName: summary).
Request URL#
GET
https://web3.okx.com/api/v6/explorer/info/summaryRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainIndex | String | No | Unique identifier of the chain, e.g., 1 for ETH, 0 for BTC. If omitted, all supported chains are returned. 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. |
| lastHeight | String | Latest block height. |
| lastBlockTime | String | Latest block time. |
| circulatingSupply | String | Current circulating supply of the chain's native token. |
| circulatingSupplyProportion | String | Circulating supply of the chain's native token as a proportion of total supply. |
| transactions | String | Total transaction count. |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v6/explorer/info/summary?chainIndex=1' \
--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": "1",
"symbol": "ETH",
"lastHeight": "22990123",
"lastBlockTime": "1753690007000",
"circulatingSupply": "120708026.34",
"circulatingSupplyProportion": "",
"transactions": "2915678123"
}
]
}
