查询单个币种官网、合约地址、社媒等详细信息
POST https://www.okx.com/api/v5/waas/coin/coin-detail
Parameter | Type | Required | Description |
---|---|---|---|
chainId | String | 是 | 链唯一标识,如果只传递 chainId,默认查询主链币 |
tokenName | String | 否 | 代币名称,大小写兼容 |
tokenAddress | String | 否 | 该代币的合约地址,如果和 tokenName 两个参数都填写了,以 tokenAddress 参数字段为准 |
coinId | String | 否 | 如果传递了 coinId,以 coinId 为准 |
Parameter | Type | Description |
---|---|---|
logoUrl | String | Logo |
officialWebsite | String | 官方网站的 URL |
socialUrls | Object | 社交媒体 |
Array<String> | 如存在,则返回,否则不返回 | |
Array<String> | 如存在,则返回,否则不返回 | |
Array<String> | 如存在,则返回,否则不返回 | |
>messageboard | Array<String> | 如存在,则返回,否则不返回 |
>chat | Array<String> | 如存在,则返回,否则不返回 |
>github | Array<String> | 如存在,则返回,否则不返回 |
>whitepaper | Array<String> | 如存在,则返回,否则不返回 |
>announcement | Array<String> | 如存在,则返回,否则不返回 |
decimals | String | 代币精度 |
tokenAddress | String | 地址 |
chainId | String | 链唯一标识 |
chain | String | 链名称 |
symbol | String | 币种简称 |
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"
}
]
}