Fill a JSON object with a human-readable description of a transaction.
Declared in <core_io.h>
void
TxToUniv(
CTransaction const& tx,
uint256 const& block_hash,
UniValue& entry,
bool include_hex = true,
CTxUndo const* txundo = nullptr,
TxVerbosity verbosity = TxVerbosity::SHOW_DETAILS,
std::function<bool(CTxOut const&)> is_change_func = {});
| Name | Description |
|---|---|
| tx | Transaction to describe. |
| block_hash | Hash of the block containing the transaction, or null if unconfirmed. |
| entry | JSON object populated with the transaction's fields. |
| include_hex | When true, include the raw transaction as a hex string. |
| txundo | Optional undo data used to report the values and scripts of spent inputs. |
| verbosity | Level of detail to include for the transaction's data. |
| is_change_func | Optional predicate that reports whether an output is change. |