更多资源
币种其他信息查询

币种其他信息查询#

查询单个币种官网、合约地址、社媒等详细信息

请求地址#

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

请求参数#

ParameterTypeRequiredDescription
chainIdString链唯一标识,如果只传递 chainId,默认查询主链币
tokenNameString代币名称,大小写兼容
tokenAddressString该代币的合约地址,如果和 tokenName 两个参数都填写了,以 tokenAddress 参数字段为准
coinIdString如果传递了 coinId,以 coinId 为准

响应参数#

ParameterTypeDescription
logoUrlStringLogo
officialWebsiteString官方网站的 URL
socialUrlsObject社交媒体
>twitterArray<String>如存在,则返回,否则不返回
>facebookArray<String>如存在,则返回,否则不返回
>redditArray<String>如存在,则返回,否则不返回
>messageboardArray<String>如存在,则返回,否则不返回
>chatArray<String>如存在,则返回,否则不返回
>githubArray<String>如存在,则返回,否则不返回
>whitepaperArray<String>如存在,则返回,否则不返回
>announcementArray<String>如存在,则返回,否则不返回
decimalsString代币精度
tokenAddressString地址
chainIdString链唯一标识
chainString链名称
symbolString币种简称

请求示例#

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"
}'

响应示例#

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"
        }
    ]
}