transactionEntry method
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;
}