getBalance
getBalance
is a method on the ARIO
class that retrieves the token balance for a specific wallet address.
getBalance
does not require authentication.
Parameters
← Swipe to see more →
Parameter | Type | Description | Optional |
---|---|---|---|
address | string - WalletAddress | The wallet address to retrieve the balance for | false |
← Swipe to see more →
Examples
getBalance
const { ARIO } = require('@ar.io/sdk');
async function main() {
const ario = ARIO.init();
const balance = await ario.getBalance({
address: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3'
});
console.log(balance);
}
main();
Output
1234567890