Query available protocol detail list

Description

  • Method:HTTPS GET

  • Encoding:UTF-8

  • Path:https://api.blockin.ai/v2/protocol/support_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

chain_name

Y

String

Chain's name,support single chain's name. eg: eth,Ethereum. Enumeration

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

records

Y

Record

Record detail

Record Content

Parameter
Required
Type
Description

chain_name

Y

String

Chain's name

protocol_name

Y

String

Protocol's name

project_name

Y

Integer

Project's name

logo_url

Y

Integer

URL of project logo image

tags

Y

List<TagInfo>

TagInfoList

TagInfo Content

Parameter
Required
Type
Description

tag_name

Y

String

Tag's name

tag_id

Y

Integer

Tag's id

tag_type

Y

String

Tag's type

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/protocol/support_protocol_list?chain_name=bsc"

Successful Response Sample

{
    "success": true,
    "data": [
        {
            "tags": null,
            "price": null,
            "project_name": "RelyFund",
            "protocol_name": "relyfund",
            "logo_url": "https://www.blockin.ai/image/protocol/relyfund.png",
            "site_url": "https://relyfund.finance/",
            "chain_name": "BSC",
            "user_deposits": 0.00000000000000000000000,
            "user_count": 0,
            "platform_token_address": "",
            "platform_token_symbol": "",
            "platform_token_logo_url": null
        },
        {
            "tags": [
                {
                    "tag_id": 1,
                    "tag_name": "Yield-Aggregator",
                    "tag_type": "yield_aggregator"
                }
            ],
            "price": null,
            "project_name": "SIL Finance",
            "protocol_name": "sil",
            "logo_url": "https://www.blockin.ai/image/protocol/sil.png",
            "site_url": "https://sil.finance",
            "chain_name": "BSC",
            "user_deposits": 0.00000000000000000000000,
            "user_count": 0,
            "platform_token_address": "0x133bb423d9248a336d2b3086b8f44a7dbff3a13c",
            "platform_token_symbol": "SIL",
            "platform_token_logo_url": "https://www.blockin.ai/image/bsc/token/0x133bb423d9248a336d2b3086b8f44a7dbff3a13c.png"
        }
      ...
    ],
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

{
    "success": true,
    "data": [],
    "error_code": null,
    "error_msg": null
}

Last updated