Query available chain list

Description

  • Method: HTTPS GET

  • Encoding:UTF-8

  • Path:https://api.blockin.ai/v2/chain/chain_list

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

chain_abbr

Y

String

Chain's abbreviation name

logo_url

Y

String

URL of Chain's logo image

chain_id

Y

String

Chain's community id

native_token

Y

String

Chain's native token

wrapped_token_address

Y

String

Chain's wrapped token address

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/chain/chain_list"

Successful Response Sample

{
    "success": true,
    "data": [
        {
            "chain_name": "Ethereum",
            "chain_abbr": "eth",
            "logo_url": "https://www.blockin.ai/image/chain/1.png",
            "chain_id": 1,
            "native_token": "ETH",
            "wrapped_token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
        },
        {
            "chain_name": "BSC",
            "chain_abbr": "bsc",
            "logo_url": "https://www.blockin.ai/image/chain/56.png",
            "chain_id": 56,
            "native_token": "BNB",
            "wrapped_token_address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
        },
        {
            "chain_name": "Arbitrum",
            "chain_abbr": "arb",
            "logo_url": "https://www.blockin.ai/image/chain/42161.png",
            "chain_id": 42161,
            "native_token": "ETH",
            "wrapped_token_address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
        }
    ],
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

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

Last updated