getAccountTokensCount method

Future getAccountTokensCount(
  1. String ownerAddress
)

Gets the count of tokens owned by an account

Implementation

Future<dynamic> getAccountTokensCount(String ownerAddress) async {
  final address = HexString.ensure(ownerAddress).hex();
  IndexerClient.validateAddress(address);
  final variables = {
    "owner_address": address
  };
  return queryIndexer(document: GetAccountTokensCount, variables: variables);
}