getAccountCoinActivity method
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;
}