Balances
Query and monitor wallet balances across your platform
Balances
Query wallet balances in real-time to display accurate fund information to your users.
Balance queries return the current state of wallets. For tracking balance changes and transaction events, see Webhooks.
Overview
The Balances API allows you to:
- Query individual wallet balances
- List all balances for a customer
- Check balances across different networks
- Monitor balance changes
Get Wallet Balance
Retrieve the current balance for a specific wallet.
Endpoint
Request Example
Response
Get Customer Balances
Retrieve all wallet balances for a customer across all networks.
Endpoint
Request Example
Response
Response Fields
Field | Type | Description |
---|---|---|
walletId | string | Unique wallet identifier |
network | string | Network the wallet is on (polygon, ethereum, etc.) |
balances[] | array | Array of token balances |
balances[].currency | string | Currency/token symbol |
balances[].amount | string | Balance amount (decimal string) |
balances[].decimals | number | Token decimals |
lastUpdated | string | ISO timestamp of last balance update |
Balance Tracking
For real-time balance change notifications, use webhooks. See Webhooks documentation for:
balance.updated
eventstransfer.completed
eventspayin.completed
eventspayout.completed
events
Common Use Cases
Display User Balance
Show the current balance to users in your application:
Check Sufficient Balance
Verify a user has sufficient funds before initiating a payout:
Best Practices
Balance Consistency: Balances may have a slight delay (a few seconds) after transactions complete due to blockchain confirmation times.
Caching: Balance queries can be cached for short periods (30-60 seconds) to reduce API calls. Use webhooks for real-time updates.