Query available protocol list
Description
Method:HTTPS GET
Encoding:UTF-8
Path:https://api.blockin.ai/v2/protocol/protocol_list
Description:Query available protocol list supported by Blockin.
Request Header
Parameter
Required
Type
Description
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
Parameter
Required
Type
Description
Response
Public Response
Parameter
Required
Type
Description
success
Y
Boolean
Success Boolean
data
N
List
Response object
error_code
N
String
Error code
error_msg
N
String
Error message
Response Content
Parameter
Required
Type
Description
chain_name
Y
String
Chain's name
protocol_name
Y
String
Protocol'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
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/protocol/protocol_list?chain_name=eth"
Successful Response Sample
{
"success": true,
"data": [
{
"project_name": "Compound",
"logo_url": "https://www.blockin.ai/image/protocol/compound.png",
"site_url": "https://app.compound.finance",
"chain_name": "Ethereum",
"protocol_name": "compound"
},
{
"project_name": "Uniswap V2",
"logo_url": "https://www.blockin.ai/image/protocol/uniswap2.png",
"site_url": "https://app.uniswap.org",
"chain_name": "Ethereum",
"protocol_name": "uniswap2"
},
{
"project_name": "SushiSwap",
"logo_url": "https://www.blockin.ai/image/protocol/sushiswap.png",
"site_url": "https://www.sushi.com/swap",
"chain_name": "Ethereum",
"protocol_name": "sushiswap"
}
...
]
}
Failed Response Sample
{
"success": true,
"data": [],
"error_code": null,
"error_msg": null
}
Last updated