List total balances across all wallets in an enterprise

get/api/v2/wallet/balances/merged

Returns the total balances for each coin accross all wallets of the calling user in an enterprise. If no enterprise is specified it returns the balances for all wallets of the user that don't belong to an enterprise.

Query Parameters

  • coinarray[string]
    Filter by coin
    Example: btc
  • enterprisestring
    Filter by enterprise
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$
  • showAllWalletsboolean
    Include wallets that have `deleted` or `creationFailed` set to **true**
  • includeMigratedboolean
    Include v1 wallets which have been migrated to a v2 wallet

200 Response

dictionary<string, object>
Example: {"btc":{"balance":50000,"balanceString":"50000"},"eth":{"balance":0,"balanceString":"2000000"}}
object
balance integer
The total balance of all wallets containing the given coin type. May lose precision for large values.
Example: 50000
balanceString string
String representation of `balance`. Guaranteed to not lose precision.
Example: 50000

400 Response

One of
error string required
Human-readable error message
requestId string required
Client request id
context object
Properties that apply to a specific error name
name string required
Error code

403 Response

error string required
Human-readable error message
requestId string required
Client request id
context object
Properties that apply to a specific error name
name string required
Error code