Skip to main content

Get Balance Summary

Get a comprehensive summary of all balances for the tenant, including wallet balances and custody account balances.

Endpoint

GET /manage/users/balances

Authentication

This endpoint requires an OAuth 2.0 access token with tenant administrator or global administrator role:

Authorization: Bearer {access_token}

Parameters

Query Parameters

ParameterTypeDefaultDescription
include_walletsbooleantrueWhether to include wallet balances in the response
include_custodybooleantrueWhether to include custody account balances in the response

Response

200 OK

A successful response will include a detailed summary of all balances:

{
"total_balances": [
{
"blockchain": "ETH",
"token": "USDT",
"hot_wallet_balance": 1000.0,
"cold_wallet_balance": 5000.0,
"custody_balance": 2000.0,
"total_balance": 8000.0
},
{
"blockchain": "BSC",
"token": "USDT",
"hot_wallet_balance": 500.0,
"cold_wallet_balance": 2500.0,
"custody_balance": 1500.0,
"total_balance": 4500.0
}
],
"wallets": [
{
"id": "wallet-123",
"name": "ETH Hot Wallet",
"blockchain": "ETH",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"is_cold_wallet": false,
"balance": 1000.0,
"token": "USDT",
"last_check": "2025-04-19T12:34:56.789Z"
}
],
"custody_accounts": [
{
"id": "account-123",
"tenant_id": "tenant-123",
"name": "Main Custody Account",
"external_id": "ext-123",
"account_type": "standard",
"is_active": true,
"is_verified": true,
"created_at": "2025-04-19T12:34:56.789Z",
"updated_at": "2025-04-19T12:34:56.789Z",
"last_sync": "2025-04-19T12:34:56.789Z"
}
],
"last_updated": "2025-04-19T12:34:56.789Z"
}

Response Fields

total_balances Array

Each object in the total_balances array contains:

FieldTypeDescription
blockchainstringBlockchain identifier (e.g., "ETH", "BSC")
tokenstringToken symbol (e.g., "USDT")
hot_wallet_balancenumberTotal balance in hot wallets
cold_wallet_balancenumberTotal balance in cold wallets
custody_balancenumberTotal balance in custody accounts
total_balancenumberSum of all balances

wallets Array

Each object in the wallets array contains:

FieldTypeDescription
idstringWallet identifier
namestringWallet name
blockchainstringBlockchain identifier
addressstringWallet address
is_cold_walletbooleanWhether this is a cold wallet
balancenumberCurrent wallet balance
tokenstringToken symbol
last_checkstringTimestamp of last balance check

custody_accounts Array

Each object in the custody_accounts array contains:

FieldTypeDescription
idstringCustody account identifier
tenant_idstringTenant identifier
namestringAccount name
external_idstringExternal identifier
account_typestringAccount type (e.g., "standard")
is_activebooleanWhether the account is active
is_verifiedbooleanWhether the account is verified
created_atstringCreation timestamp
updated_atstringLast update timestamp
last_syncstringLast synchronization timestamp

401 Unauthorized

Occurs when the OAuth 2.0 access token is missing or invalid:

{
"detail": "Not authenticated"
}

403 Forbidden

Occurs when the authenticated user doesn't have tenant administrator role:

{
"detail": "Only tenant administrators can access this endpoint"
}

Example Request

curl -X GET "https://api.cryptofuse.io/manage/users/balances" \
-H "Authorization: Bearer eyJ0eXAiOiJPQXV0aFRva2VuIiwiYWxnIjoiUlMyNTYifQ..."

Example Response

{
"total_balances": [
{
"blockchain": "ETH",
"token": "USDT",
"hot_wallet_balance": 1000.0,
"cold_wallet_balance": 5000.0,
"custody_balance": 2000.0,
"total_balance": 8000.0
},
{
"blockchain": "BSC",
"token": "USDT",
"hot_wallet_balance": 500.0,
"cold_wallet_balance": 2500.0,
"custody_balance": 1500.0,
"total_balance": 4500.0
}
],
"wallets": [
{
"id": "wallet-123",
"name": "ETH Hot Wallet",
"blockchain": "ETH",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"is_cold_wallet": false,
"balance": 1000.0,
"token": "USDT",
"last_check": "2025-04-19T12:34:56.789Z"
},
{
"id": "wallet-456",
"name": "ETH Cold Wallet",
"blockchain": "ETH",
"address": "0xabcdef1234567890abcdef1234567890abcdef12",
"is_cold_wallet": true,
"balance": 5000.0,
"token": "USDT",
"last_check": "2025-04-19T12:34:56.789Z"
}
],
"custody_accounts": [
{
"id": "account-123",
"tenant_id": "tenant-123",
"name": "Main Custody Account",
"external_id": "ext-123",
"account_type": "standard",
"is_active": true,
"is_verified": true,
"created_at": "2025-04-19T12:34:56.789Z",
"updated_at": "2025-04-19T12:34:56.789Z",
"last_sync": "2025-04-19T12:34:56.789Z"
}
],
"last_updated": "2025-04-19T12:34:56.789Z"
}