transactionsByAccount method

Future<SearchTransactionsResponse> transactionsByAccount(
  1. String accountAddress
)

Return the /search/transactions response for transactions containing an operation that affects the specified account. @param {string} accountAddress The account address to get the transactions of. @returns {Promise

Implementation

Future<rosetta.SearchTransactionsResponse> transactionsByAccount(
  String accountAddress,
) async {
  assert(networkIdentifier != null, 'Cannot get networkIdentifier.');
  final result = await request('/search/transactions', {
    'network_identifier': networkIdentifier,
    'account_identifier': {'address': accountAddress},
  });
  return rosetta.SearchTransactionsResponse.fromJson(result);
}