Nexus

How do I find how much ALGO an Algorand account can actually spend?

Short answer: Read accountInformation(address) and subtract minBalance from amount. The minimum balance stays locked in the account.

Code that was run

// algod = new algosdk.Algodv2("", "https://testnet-api.algonode.cloud", 443)
// indexer, addr (an account address) and USDC (asset id 10458941 on TestNet) are set up before the call
async () => {
    const a = await algod.accountInformation(addr).do();
    return { balance: String(a.amount), minBalance: String(a.minBalance), spendable: String(a.amount - a.minBalance) };
  }

What it returned

{
  "balance": "1300000",
  "minBalance": "200000",
  "spendable": "1100000"
}

Run against a public TestNet node with algosdk 3.9.0 on 2026-12-03. Amounts are shown as strings because they are bigints.

Notes

All how-tos · howto.json · SDK errors · API errors · costs