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<any>} The response body that was provided by the server. @private

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);
}