aibank
API ReferenceWallets

Get Balances

Get token balances across all supported chains for a wallet.

Get Balances

Fetches live token balances from all supported blockchains for the specified wallet.

Authentication

Requires X-API-Key header.

Path parameters

ParameterTypeDescription
idstringWallet UUID

Request

curl http://localhost:4000/v1/wallets/WALLET_ID/balances \
  -H "X-API-Key: ak_your_key"

Response (200)

{
  "wallet_id": "wallet-uuid",
  "balances": [
    {
      "chain": "ethereum",
      "token": "ETH",
      "balance": "0.05",
      "usd_value": "150.00"
    },
    {
      "chain": "base",
      "token": "USDC",
      "balance": "100.00",
      "usd_value": "100.00"
    },
    {
      "chain": "solana",
      "token": "SOL",
      "balance": "1.50",
      "usd_value": "225.00"
    }
  ]
}

Response fields

FieldTypeDescription
wallet_idstringWallet UUID
balancesarrayPer-chain balance entries
balances[].chainstringChain name
balances[].tokenstringToken symbol
balances[].balancestringBalance as decimal string
balances[].usd_valuestringUSD equivalent (when available)

Errors

StatusCodeDescription
404NOT_FOUNDWallet not found
502BALANCE_FETCH_ERRORFailed to fetch balances from blockchain

On this page