tx method

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

The tx method retrieves information on a single transaction. See tx

Implementation

Future<Map<String, dynamic>> tx(
  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>>("tx", [configParams]);
  return response;
}