Get User Balance
Retrieve the balance of a specified ERC-20 token for a given user address. It provides an essential function for wallet management and decentralized finance applications by offering real-time balance information across multiple blockchain networks.
💡 Compute Unit Value: 55 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/fungibletoken/getuserbalance
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The address of the token whose balance is to be retrieved.
The public address of the user whose token balance is being queried.
The abbreviated chain name for queries or transactions.
A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"balance": "6174207572153394239393946019",
"prices": {
"usd": [
{
"0xfaba6f8e4a5e8ab82f62fe7c39859fa577269be3": "0.9886460715040926"
}
],
"inr": [
{
"0xfaba6f8e4a5e8ab82f62fe7c39859fa577269be3": "85.44778029217368"
}
],
"eur": [
{
"0xfaba6f8e4a5e8ab82f62fe7c39859fa577269be3": "0.8416413211939346"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.