irys.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 irys.utils.fromAtomic(atomicUnits)
.
Example
const irys = await getIrys();
// Get loaded balance in atomic units
const atomicBalance = await irys.getLoadedBalance();
console.log(`Node balance (atomic units) = ${atomicBalance}`);
// Convert balance to standard
const convertedBalance = irys.utils.fromAtomic(atomicBalance);
console.log(`Node balance (converted) = ${convertedBalance}`);