Balances
Query and monitor wallet balances across your platform
Balances
Query wallet balances in real-time to display accurate fund information to your users.
For real-time balance change notifications, use Webhooks.
Get Wallet Balance
Retrieve the current balance for a specific wallet.
Quick Example
Response:
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletId | string | Yes | Wallet ID in the URL path (e.g., wal_abc123) |
Response Fields
| Field | Type | Description |
|---|---|---|
walletId | string | Unique wallet identifier |
network | string | Network the wallet is on (e.g., polygon, ethereum) |
balances[] | array | Array of token balances in the wallet |
balances[].currency | string | Currency/token symbol (e.g., USDC, USDT) |
balances[].amount | string | Balance amount (decimal string) |
balances[].decimals | number | Token decimals (e.g., 6 for USDC) |
lastUpdated | string | ISO timestamp of last balance update |
Get Customer Balances
Retrieve all wallet balances for a customer across all networks.
Quick Example
Response:
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer ID in the URL path (e.g., cus_abc123) |
Response Fields
| Field | Type | Description |
|---|---|---|
customerId | string | Customer ID from the request |
totalBalance | object | Total balance across all wallets (converted to base currency) |
totalBalance.amount | string | Total balance amount |
totalBalance.currency | string | Base currency (e.g., USD) |
wallets[] | array | Array of wallets owned by the customer |
wallets[].walletId | string | Unique wallet identifier |
wallets[].network | string | Network the wallet is on |
wallets[].address | string | Wallet address on the network |
wallets[].balances[] | array | Token balances in this wallet |
wallets[].balances[].currency | string | Currency/token symbol |
wallets[].balances[].amount | string | Balance amount |
Language Examples
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.