Query used chain by user address

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

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

  • Description: Query used chain by user address

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

address

Y

String

User's address

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_abbr

Y

String

Chain's abbreviated name

chain_id

Y

String

Chain's community id

chain_name

Y

String

Chain's name

logo_url

Y

String

URL of the chain's logo image

native_token

Y

String

Chain's native token address

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/user/chain_list?address=0x5d7166ee0c633021cb502fa5302866316d86f701"

Successful Response Sample

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

Last updated