[#TxToUniv] = TxToUniv :mrdocs: Fill a JSON object with a human‐readable description of a transaction. == Synopsis Declared in `<core_io.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void TxToUniv( xref:CTransaction.adoc[CTransaction] const& tx, xref:uint256.adoc[uint256] const& block_hash, xref:UniValue.adoc[UniValue]& entry, bool include_hex = true, xref:CTxUndo.adoc[CTxUndo] const* txundo = nullptr, xref:TxVerbosity.adoc[TxVerbosity] verbosity = TxVerbosity::SHOW_DETAILS, std::function<bool(xref:CTxOut.adoc[CTxOut] const&)> is_change_func = {}); ---- == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#