Retrieve essential information about a specific coin, including its logo, website,socialmedia and key on-chain data.
POST https://www.okx.com/api/v5/waas/coin/coin-detail
Parameter | Type | Required | Description |
---|---|---|---|
chainId | String | Yes | Main chain Id If only chainId is passed, the default is the main chain coin |
tokenName | String | No | Token name, case compatible |
tokenAddress | String | No | The contract address of the token. If both parameters and tokenName are filled in, the tokenAddress parameter field shall prevail, |
coinId | String | No | If coinId is passed, coinId shall prevail. |
Parameter | Type | Description |
---|---|---|
logoUrl | String | Logo |
officialWebsite | String | Official website URL |
socialUrls | Object | Social media |
List | If it exists, it will be returned, otherwise it will not be returned. | |
List | If it exists, it will be returned, otherwise it will not be returned. | |
List | If it exists, it will be returned, otherwise it will not be returned. | |
>messageboard | List | If it exists, it will be returned, otherwise it will not be returned. |
>chat | List | If it exists, it will be returned, otherwise it will not be returned. |
>github | List | If it exists, it will be returned, otherwise it will not be returned. |
>whitepaper | List | If it exists, it will be returned, otherwise it will not be returned. |
announcement | List | If it exists, it will be returned, otherwise it will not be returned. |
decimals | Integer | Token precision |
tokenAddress | String | Address |
chainId | Long | Unique identifier of the chain |
chain | String | Network name |
symbol | String | Coin symbol |
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"
}'
{
"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"
}
]
}