Query simple protocol list on all chains by user address
Description
Method: HTTPS GET
Encoding: UTF-8
Path: https://api.blockin.ai/v2/user/all_simple_protocol_list
Description: Query simple protocol list on all chains by user address
Request Header
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
chain_names
N
String
If chain_names is empty, query all. Multiple chains are separated by commas. eg: eth, bsc, arb. Enumeration
address
Y
String
User's address
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
protocol_name
Y
String
Protocol's name
chain_name
Y
String
Chain's name
project_name
Y
String
Project's name
logo_url
Y
String
URL of the protocol's logo image.
site_url
Y
String
Website URL
net_usd_value
Y
BigDecimal
Amount of the user's net assets in the protocol.
asset_usd_value
Y
BigDecimal
Amount of the user's total assets in the protocol.
debt_usd_value
Y
BigDecimal
Debt USD value.
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/user/all_simple_protocol_list?address=0xe6ee5ec0a5183ceaa46b7eab8931a8b354f755b3&chain_names=eth,bsc"
Successful Response Sample
{
"success": true,
"data": [
{
"protocol_name": "1inch2",
"chain_name": "Ethereum",
"project_name": "1inch",
"logo_url": "https://www.blockin.ai/image/protocol/1inch2.png",
"site_url": "https://app.1inch.io",
"net_usd_value": 277.024748,
"asset_usd_value": 277.024748,
"debt_usd_value": 0
},
{
"protocol_name": "uniswap2",
"chain_name": "Ethereum",
"project_name": "Uniswap V2",
"logo_url": "https://www.blockin.ai/image/protocol/uniswap2.png",
"site_url": "https://app.uniswap.org",
"net_usd_value": 0.000000000000044280106063564839471330098112584,
"asset_usd_value": 0.000000000000044280106063564839471330098112584,
"debt_usd_value": 0
},
{
"protocol_name": "mdex",
"chain_name": "BSC",
"project_name": "MDEX",
"logo_url": "https://www.blockin.ai/image/protocol/mdex.png",
"site_url": "https://bsc.mdex.co",
"net_usd_value": 0.002771423418640229130118,
"asset_usd_value": 0.002771423418640229130118,
"debt_usd_value": 0
}
],
"error_code": null,
"error_msg": null
}
Last updated