Get Balance
retrieves the current token balance for a specified wallet address on supported blockchain networks, with optional filtering by asset codes and issuers. It returns precise balance data essential for real-time portfolio tracking, fee calculations, and wallet-related operations in decentralized applications
💡 Compute Unit Value: 50 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/chain/getbalance
- 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 abbreviated chain name for queries or transactions.
Block number for which the balance needs to be retrieved. Defaults to the latest block if not specified.
The public address to get the balance of.
The address of the token to get the balance of.
Timestamp of the block number. Takes precedence over block number if both are provided.
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.
The public address of the issuer.
The code of the asset to get the balance of. Required if issuer address is provided.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"balance": "0",
"usdPrice": "4603.59265991327",
"prices": {
"usd": [
{
"eth": "4603.59265991327"
}
]
},
"logoUrl": "https://images.ctfassets.net/hwqnbx905qdp/KB7lTVf04F9d0YQx7Ui4h/589c2efc739b0babc0074dab61d11e71/eip155_1-0x0000000000000000000000000000000000000000.webp",
"tags": [
"native"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.