RootSoft / algorand-dart

Unofficial community SDK to interact with the Algorand network, for Dart & Flutter
MIT License
36 stars 16 forks source link

Access to asset balances (and other similar) #17

Closed 2i2i closed 3 years ago

2i2i commented 3 years ago

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.)?

RootSoft commented 3 years ago

You should use the getAccountByAddress() method to fetch all account related information. You can find an example here: https://github.com/RootSoft/algorand-dart/blob/a0e33ecfdfd3a53e1634eb8be0235a244c08e63d/example/assets/assets.dart#L211