代币基础信息#
获取指定代币合约地址的基础信息
请求 URL#
POST https://web3.okx.com/api/v5/dex/market/token/basic-info
请求参数#
参数 | 类型 | 必填 | 描述 |
---|---|---|---|
chainIndex | String | 是 | 链的唯一标识。 例如: 1 :Ethereum。更多链请参考 这里。 |
tokenContractAddress | String | 是 | 代币合约地址(例如:0x382bb369d343125bfb2117af9c149795c6c65c50) |
返回参数#
参数 | 类型 | 描述 |
---|---|---|
chainIndex | String | 链的唯一标识(如 1: Ethereum,更多见链列表) |
tokenName | String | 代币名称 |
tokenSymbol | String | 代币符号 |
tokenLogoUrl | String | 代币图标 URL |
decimal | String | 代币精度 |
tagList | Object | 标签 |
>communityRecognized | Boolean | True 表示该代币已在前 10 大中心化交易所上线,或已通过社区验证 |
请求示例#
shell
curl --location --request POST 'https://web3.okx.com/api/v5/dex/market/token/basic-info' \
--header 'Content-Type: application/json' \
--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 '[
{
"chainIndex": "501",
"tokenContractAddress": "5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp"
},
{
"chainIndex": "501",
"tokenContractAddress": "eL5fUxj2J4CiQsmW85k5FG9DvuQjjUoBHoQBi2Kpump"
}
]'
响应示例#
200
{
"code": "0",
"data": [
{
"chainIndex": "501",
"decimal": "6",
"tagList": {
"communityRecognized": true
},
"tokenContractAddress": "5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp",
"tokenLogoUrl": "https://static.oklink.com/cdn/web3/currency/token/small/501-5mbK36SZ7J19An8jFochhQS4of8g6BwUjbeCSxBSoWdp-106?v=1749146943562",
"tokenName": "michi",
"tokenSymbol": "$michi"
},
{
"chainIndex": "501",
"decimal": "6",
"tagList": {
"communityRecognized": true
},
"tokenContractAddress": "eL5fUxj2J4CiQsmW85k5FG9DvuQjjUoBHoQBi2Kpump",
"tokenLogoUrl": "https://static.oklink.com/cdn/web3/currency/token/large/501-eL5fUxj2J4CiQsmW85k5FG9DvuQjjUoBHoQBi2Kpump-108/type=default_90_0?v=1755815305433",
"tokenName": "Unicorn Fart Dust",
"tokenSymbol": "UFD"
}
],
"msg": ""
}