More resources
Get coin additional information

Get coin additional information#

Retrieve essential information about a specific coin, including its logo, website,socialmedia and key on-chain data.

Request address#

POST https://www.okx.com/api/v5/waas/coin/coin-detail

Request parameters#

ParameterTypeRequiredDescription
chainIdStringYesMain chain Id If only chainId is passed, the default is the main chain coin
tokenNameStringNoToken name, case compatible
tokenAddressStringNoThe contract address of the token. If both parameters and tokenName are filled in, the tokenAddress parameter field shall prevail,
coinIdStringNoIf coinId is passed, coinId shall prevail.

Response parameters#

ParameterTypeDescription
logoUrlStringLogo
officialWebsiteStringOfficial website URL
socialUrlsObjectSocial media
>twitterListIf it exists, it will be returned, otherwise it will not be returned.
>facebookListIf it exists, it will be returned, otherwise it will not be returned.
>redditListIf it exists, it will be returned, otherwise it will not be returned.
>messageboardListIf it exists, it will be returned, otherwise it will not be returned.
>chatListIf it exists, it will be returned, otherwise it will not be returned.
>githubListIf it exists, it will be returned, otherwise it will not be returned.
>whitepaperListIf it exists, it will be returned, otherwise it will not be returned.
announcementListIf it exists, it will be returned, otherwise it will not be returned.
decimalsIntegerToken precision
tokenAddressStringAddress
chainIdLongUnique identifier of the chain
chainStringNetwork name
symbolStringCoin symbol

Request example#

shell
curl --location --request POST 'https://www.okx.com/api/v5/waas/coin/coin-detail?' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--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' \
--data-raw '{
     "chainId": "56",
     "tokenName":"",
     "tokenAddress": "0x6f620ec89b8479e97a6985792d0c64f237566746"
}'

Response example#

200
{
     "code": 0,
     "msg": "success",
     "data": [
         {
             "logoUrl": "https://static.oklink.com/cdn/web3/currency/token/bnb-wpc-0x6f620ec89b8479e97a6985792d0c64f237566746.png/type=png_350_0",
             "officialWebsite": "https://www.wepiggy.com/",
             "socialUrls": {
                 "messageboard": [
                     "https://wepiggy-com.medium.com/"
                 ],
                 "github": [
                     "https://github.com/WePiggy"
                 ],
                 "twitter": [
                     "https://twitter.com/wepiggydotcom"
                 ],
                 "chat": [
                     "https://t.me/wepiggy;https://discord.com/invite/pew9k58"
                 ],
                 "reddit": [
                     "https://reddit.com/r/WePiggy/"
                 ]
             },
             "decimals": "18",
             "tokenAddress": "0x6f620ec89b8479e97a6985792d0c64f237566746",
             "chainId": "56",
             "chain": "BNB Chain",
             "symbol": "wpc"
         }
     ]
}