Skip to main content
This guide shows how to fetch the balance of an Alephium address both the native ALPH amount and any tokens held.

Get the ALPH balance

All amounts are in attoALPH the smallest unit of ALPH. To convert to ALPH divide by 10^18. lockedBalance is ALPH that exists in outputs with a future lockTime it belongs to the address but cannot be spent yet. utxoNum is the number of unspent outputs the balance is spread across.

Get token balances

The raw node balance endpoint only returns ALPH. To get token balances use the indexer:
Token amounts use the token’s own decimal precision not 10^18. Always fetch the token metadata to get the correct decimals value before displaying an amount to a user.

Get token metadata

With decimals: 6, a raw balance of 500000000 equals 500 USDT.

Get all tokens held by an address

A balance of "1" almost always means the token is an NFT. Fungible tokens on Alephium typically have amounts well above 1 even after accounting for decimals.

Get UTXOs for an address

If you need to build a transaction manually you need the raw UTXOs, not just the balance:
Each entry in utxos is a spendable output. The SDK handles UTXO selection automatically when you use transactions/build you only need this endpoint if you are constructing raw transactions yourself.

Check if a node is synced before querying

Balances returned by an unsynced node will be stale. Check sync status first:
Only proceed with balance queries when isSynced is true.

Parameters reference

Next steps

Submit a transaction

Build, sign, and broadcast a transfer

Read a contract

Call view functions on deployed contracts