transactionEntry method

Future<Map<String, dynamic>> transactionEntry(
  1. String txHash, {
  2. String? ledgerHash,
  3. XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
})

The transaction_entry method retrieves information on a single transaction from a specific ledger version. (The tx method, by contrast, searches all ledgers for the specified transaction. We recommend using that method instead.) See transaction_entry

Implementation

Future<Map<String, dynamic>> transactionEntry(
  String txHash, {
  String? ledgerHash,
  XRPLLedgerIndex? ledgerIndex = XRPLLedgerIndex.validated,
}) async {
  final Map<String, dynamic> configParams = {};
  _createRpcConfig(configParams, "tx_hash", txHash);
  _createRpcConfig(configParams, "ledger_index", ledgerIndex?.value);
  _createRpcConfig(configParams, "ledger_hash", ledgerHash);
  final response = await makeCustomCall<Map<String, dynamic>>(
      "transaction_entry", [configParams]);
  return response;
}