Portal deweloperski
Motyw

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/summary

Request Parameters#

ParameterTypeRequiredDescription
chainIndexStringNoUnique 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#

ParameterTypeDescription
chainIndexStringUnique identifier of the chain.
symbolStringNative token of the chain.
lastHeightStringLatest block height.
lastBlockTimeStringLatest block time.
circulatingSupplyStringCurrent circulating supply of the chain's native token.
circulatingSupplyProportionStringCirculating supply of the chain's native token as a proportion of total supply.
transactionsStringTotal 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"
        }
    ]
}