Query token authorized list by chain name and user address

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

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

  • Description:Query token authorized list by chain name and user address

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

address

Y

String

User's address

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

Object

Response object

error_code

N

String

Error code

error_msg

N

String

Error message

Data Content

Parameter
Required
Type
Description

contract_address

N

String

Approved contract's address

name

N

String

Approved contract's name

symbol

N

String

Approved contract's symbol

logo_url

N

String

Approved contract's logo url

chain_name

N

String

Chain name

price

N

BigDecimal

Native token price of the chain

balance

N

BigDecimal

Address's balance of the chain

spenders

N

List

List of object with following fields

sum_exposure_usd

N

BigDecimal

Total number of exposure value denominated in USD

Spenders Content

Parameter
Required
Type
Description

spender_address

N

String

Spender's address

value

N

BigDecimal

Approved amount

exposure_usd

N

BigDecimal

Exposure value with usd

protocol

N

Object

Spender's protocol info

last_approve_block_time

N

Long

Last authorization time

Protocol Content

Parameter
Required
Type
Description

protocol_name

N

String

Protocol's name

project_name

N

String

Project's name

logo_url

N

String

URL of the protocol's logo image

chain_name

N

String

Chain's name

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" "https://api.blockin.ai/v2/user/token_authorized_list?chain_name=eth&address=0x0082ce7f8a3e3c69e7c5cd801760d40d55ce119c

Successful Response Sample

Last updated