RootSoft/algorand-dart

Access to asset balances (and other similar)

2i2i opened this issue · 1 comments

2i2i commented

It seems that access to asset balances is available inside a private variable in class Algorand: late final AccountRepository _accountRepository;

Should this is exposed or else how to get asset balances (and other account info e.g.)?

You should use the getAccountByAddress() method to fetch all account related information.
You can find an example here:

final information = await algorand.getAccountByAddress(account.publicAddress);