curl --request GET \
--url https://production.hifibridge.com/v2/users/{userId}/wallets/balance \
--header 'Authorization: Bearer <token>'{
"balance": "0",
"displayBalance": "0",
"tokenInfo": {
"tokenAddress": "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
"standard": "ERC20",
"name": "USDC",
"symbol": "USDC",
"decimals": 6
}
}Get the latest balance of a user’s wallet, including details like the blockchain network and currency.
curl --request GET \
--url https://production.hifibridge.com/v2/users/{userId}/wallets/balance \
--header 'Authorization: Bearer <token>'{
"balance": "0",
"displayBalance": "0",
"tokenInfo": {
"tokenAddress": "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
"standard": "ERC20",
"name": "USDC",
"symbol": "USDC",
"decimals": 6
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the user
The blockchain network to retrieve the wallet balance from.
POLYGON, ETHEREUM, SOLANA, BASE The type of currency to check the balance for. Currently, only usdc is supported.
usdc, usdt, usdHifi Success
The raw balance of the wallet expressed in the smallest denomination of the token. This format is ideal for backend calculations, automation processes, or when precise, unrounded figures are necessary for smart contract interactions. For example, use this when calculating transaction fees or performing token transfer operations that require exact values.
The wallet balance formatted as a decimal string for display purposes, adjusted according to the token's decimal places to facilitate human readability. This format is best used in user interfaces where balances are displayed to end-users, such as in wallet apps or dashboards, where readability and familiarity are crucial. For instance, displaying an account balance on a user's home screen or summary page.
Detailed information about the token.
Show child attributes
Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects.
ERC20, ERC721, ERC1155 Blockchain name of the specified token.
Blockchain symbol of the specified token.
Number of decimal places shown in the token amount.