getAccountCoinsData method
Implementation
Future<List<CoinBalance>> getAccountCoinsData({
required String ownerAddress,
int? offset,
int? limit
}) async {
final address = HexString.ensure(ownerAddress).hex();
IndexerClient.validateAddress(address);
final variables = {
"owner_address": address,
"offset": offset,
"limit": limit
};
final data = await queryIndexer(document: GetAccountCoinsData, variables: variables);
return AccountCoins.fromJson(data).currentCoinBalances;
}