Query token info list
Description
Method:HTTPS GET
Encoding:UTF-8
Path:https://api.blockin.ai/v2/token/token_info_list
Description:Query token information list
Request Header
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
chain_name
Y
String
Chain's name,only support single chain's name (abbr or full name ) eg: ETH,ethereum
addresses
Y
String
Token's address,split with ','
Response
Public Response
success
Y
Boolean
Success Boolean
data
N
List
Response object
error_code
N
String
Error code
error_msg
N
String
Error message
Response Content
address
Y
String
Token's address
chain_name
Y
String
Chain's name
name
Y
String
Token's name
symbol
Y
String
Token's symbol
decimal
Y
Integer
Token's decimal
price
Y
BigDecimal
Token's price
protocol_name
Y
String
Token associated protocol's name
is_core
Y
Boolean
Whether or not to show as a common token in the wallet.
logo_url
Y
String
URL of the token's logo image.
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/token/token_info_list?chain_name=eth&addresses=0x111111111117dc0aa78b770fa6a738034120c302,ETH"
Successful Response Sample
{
"success": true,
"data": [
{
"address": "0x111111111117dc0aa78b770fa6a738034120c302",
"chain_name": "Ethereum",
"name": "1INCH Token",
"symbol": "1INCH",
"decimal": 18,
"price": 0.505864,
"protocol_name": "1inch2,mooniswap",
"is_core": true,
"logo_url": "https://www.blockin.ai/image/token/0x111111111117dc0aa78b770fa6a738034120c302.png",
"time_at": null
},
{
"address": "ETH",
"chain_name": "Ethereum",
"name": "ETH",
"symbol": "ETH",
"decimal": 18,
"price": 1765.1,
"protocol_name": null,
"is_core": false,
"logo_url": "https://www.blockin.ai/image/token/ETH.png",
"time_at": null
}
],
"error_code": null,
"error_msg": null
}
Failed Response Sample
{
"success": false,
"data": [],
"error_code": null,
"error_msg": null
}
Last updated