Query total balance on all supported chains by user address
Description
Method: HTTPS GET
Encoding: UTF-8
Path: https://api.blockin.ai/v2/user/total_balance
Description: Query total balance on all supported chains by user address
Request Header
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
address
Y
String
User's address
Response
Public Response
success
Y
Boolean
Success Boolean
data
N
Object
Response object
error_code
N
String
Error code
error_msg
N
String
Error message
Response Content
total_usd_value
Y
BigDecimal
Price of all assets in a user's account
chain_list
Y
LIst<TotalBalanceDetail>
List of TotalBalanceDetail
TotalBalanceDetail Content
chain_abbr
Y
String
Chain's abbreviated
chain_id
Y
String
Chain's communityId
chain_name
Y
String
Chain's id
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
usd_value
Y
BigDecimal
User's usd value on this chain
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/user/total_balance?address=0x5641519cc28def80d631baa28b949f17a6a22ad1&chain_name=all"
Successful Response Sample
Last updated