Query available tagInfo list

Description

  • Method:HTTPS GET

  • Encoding:UTF-8

  • Path:https://api.blockin.ai/v2/protocol/tag_list

  • Description:Query available tagInfo 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

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/tag_list"

Successful Response Sample

{
    "success": true,
    "data": [
        {
            "tag_name": "Yield-Aggregator",
            "tag_id": 1,
            "tag_type": "yield_aggregator"
        },
        {
            "tag_name": "DEX-Aggregator",
            "tag_id": 2,
            "tag_type": "dex_aggregator"
        },
        {
            "tag_name": "DEX",
            "tag_id": 3,
            "tag_type": "dex"
        }
      ],
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

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

Last updated