bundlr.getLoadedBalance()
Returns the connected wallet's balance on the connected node.
Returns
-loadedBalance
: Wallet balance on the connected node
in atomic units. You can convert it into standard units using
bundlr.utils.fromAtomic(atomicUnits)
.
// Get loaded balance in atomic units
const atomicBalance = await bundlr.getLoadedBalance();
console.log(`Node balance (atomic units) = ${atomicBalance}`);
// Convert balance to standard
const convertedBalance = bundlr.utils.fromAtomic(atomicBalance);
console.log(`Node balance (converted) = ${convertedBalance}`);
ℹ️
Balances are not shared between nodes, each node maintains its own ledger of user balances.