Query chain balance by chain name and user address
Description
Method: HTTPS GET
Encoding: UTF-8
Path: https://api.blockin.ai/v2/user/chain_balance
Description: Query chain balance 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
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
usd_value
Y
BigDecimal
Balance of this account
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/user/chain_balance?address=0x86d888c3fa8a7f67452ef2eccc1c5ee9751ec8d6&chain_name=eth"
Successful Response Sample
PreviousQuery used chain by user addressNextQuery protocol portfolio list by chain name and user address
Last updated