transactionsByHash method

Future<SearchTransactionsResponse> transactionsByHash(
  1. String transactionHash
)

Return the /search/transactions response for transactions (only one) with the specified hash. @param {string} transactionHash The hash of the transaction to return. @returns {Promise

Implementation

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