Query simple protocol list on all chains by user address

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

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

  • Description: Query simple protocol list on all chains 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

chain_names

N

String

If chain_names is empty, query all. Multiple chains are separated by commas. eg: eth, bsc, arb. Enumeration

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

protocol_name

Y

String

Protocol's name

chain_name

Y

String

Chain's name

project_name

Y

String

Project's name

logo_url

Y

String

URL of the protocol's logo image.

site_url

Y

String

Website URL

net_usd_value

Y

BigDecimal

Amount of the user's net assets in the protocol.

asset_usd_value

Y

BigDecimal

Amount of the user's total assets in the protocol.

debt_usd_value

Y

BigDecimal

Debt USD value.

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/user/all_simple_protocol_list?address=0xe6ee5ec0a5183ceaa46b7eab8931a8b354f755b3&chain_names=eth,bsc"

Successful Response Sample

Last updated