getAccountCoinActivity method

Future<List<CoinActivity>> getAccountCoinActivity({
  1. required String accountAddress,
  2. int? offset,
  3. int? limit,
})

Queries an account coin activity

Implementation

Future<List<CoinActivity>> getAccountCoinActivity({
  required String accountAddress,
  int? offset,
  int? limit
}) async {
  final address = HexString.ensure(accountAddress).hex();
  IndexerClient.validateAddress(address);
  final variables = {
    "address": address,
    "offset": offset,
    "limit": limit
  };
  final data = await queryIndexer(document: GetAccountCoinActivity, variables: variables);
  return CoinActivities.fromJson(data).coinActivities;
}