Query 24-hour net assets curve on all supported chains by user address

Description

  • Method:HTTPS GET

  • Encoding: UTF-8

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

  • Description: Query user 24h net assets(wallet + protocols) curve on multiple chains

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

It's array structure. If chain_names are missing or empty, it queries all supported chains. To query multiple chains, use a string array. 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

timestamp

Long

Y

Timestamp(seconds) on the curve .

usd_value

BigDecimal

Y

The price of all net assets in a user's account at the timestamp and on multiple chains.

Request Sample

curl --request GET \ --url 'https://api.blockin.ai/v2/user/all_assets_curve_24h?chain_names=Ethereum,BSC&address=0x28a55c4b4f9615fde3cdaddf6cc01fcf2e38a6b0' \ --header 'AccessKey: 1bdb01c947c54919b64d1fc6794atest'

Successful Response Sample

{
    "success": true,
    "data": [
        {
            "timestamp": 1695606900,
            "usd_value": 1550056.08
        },
        {
            "timestamp": 1695607200,
            "usd_value": 1552661.324
        },
        {
            "timestamp": 1695607500,
            "usd_value": 1550643.107
        }
        //...    
    ],
    "error_code": null,
    "error_msg": null
}

Last updated