Guides2 min read

Track any wallet balance in real time via API

One authenticated POST call returns native balance, token holdings and live USD value across four chains.

cryptoapi team
Guides
On this page

Building a portfolio dashboard, a treasury monitor, or a compliance audit tool usually means stitching together an RPC node, an ERC-20 ABI, and a separate price feed just to answer one question: how much is in this wallet right now? With CryptoAPI you skip all of that. A single authenticated request returns the native coin, its token holdings, and the live USD value, across Ethereum, BNB Smart Chain, Bitcoin and Tron.

One call, native + tokens + USD

Balance lookups go through POST /api/wallet/balance. Every /api/* call needs your API key, sent as a key header. You pass the network and the address. Leave tokens out and you get the native coin plus the default supported tokens for that chain; supply your own tokens array (objects, up to 20 per call) to scope the response to the contracts you care about.

bash
curl -X POST https://api.cryptoapi.so/api/wallet/balance \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "network": "ethereum",
    "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
  }'

The response is a data array sorted with the native coin first, then tokens by balance. Each entry carries balance, decimals, symbol, isToken, and a ready-to-use usdValue:

json
{
  "success": true,
  "message": "Wallet balance retrieved successfully",
  "network": "ethereum",
  "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "data": [
    {
      "name": "Ethereum",
      "symbol": "ETH",
      "balance": "1.4823",
      "decimals": 18,
      "isToken": false,
      "usdValue": 5331.42
    },
    {
      "name": "Tether USD",
      "symbol": "USDT",
      "balance": "2500.0",
      "decimals": 6,
      "isToken": true,
      "usdValue": 2500.0
    }
  ]
}

Note that usdValue is already in the payload. A mainnet USD value is calculated when a rate is available. Handle null when coverage is missing.

Real-time, the practical way

There is no public webhook or streaming socket, and you do not need one. To keep a tracker current, poll POST /api/wallet/balance on whatever interval your product needs, every 30 seconds for an active dashboard, every few minutes for a treasury view. Because each call covers the native coin and up to 20 tokens, one request usually refreshes an entire wallet.

If you also want movement history rather than just current state, pair balances with GET /api/blockchain/transactions (pass the required network, then filter by address). That endpoint serves indexed history for up to 30 days of live indexed data, ideal for showing recent inflows and outflows next to a live balance.

Multi-chain from day one

The same request shape works across every supported network, just change network:

  • ethereum
  • bnb (BNB Smart Chain)
  • bitcoin
  • tron

That means a portfolio app can aggregate an EVM wallet, a BNB position, a Bitcoin address, and a Tron account through one consistent contract, with no per-chain SDKs and no node infrastructure to run.

Grab an API key from your dashboard and check the docs for the full request and response schema, then point your tracker at /api/wallet/balance and start reading balances in minutes.

Read it, then ship it

Copy the code above and run it today.

Every snippet in this guide works on the free plan. Grab a key and make your first call in a minute.