queryTransactionsByAddress method
Future<SenderTransactionPage>
queryTransactionsByAddress(
- String address, {
- int first = 20,
- String? after,
- TransactionHistoryOptions options = const TransactionHistoryOptions(),
Query transactions that affected address — both sent and received.
Uses the affectedAddress filter so an account's activity is complete;
sentAddress would only return transactions the account signed, dropping
every incoming transfer. Each node carries the timestamp, status, and the
per-owner balance deltas; pass options with showObjectChanges: true to
also fetch object changes and surface NFT / owned-object transfers (which
produce no balance change).
Implementation
Future<SenderTransactionPage> queryTransactionsByAddress(
String address, {
int first = 20,
String? after,
TransactionHistoryOptions options = const TransactionHistoryOptions(),
}) async {
final data = await transport.query(
_historyQuery('affectedAddress', options),
variables: {
'addr': address,
'first': first,
if (after != null) 'after': after,
},
);
return _parseTransactionsPage(data);
}