[#TxToUniv]
= TxToUniv
:mrdocs:

Fill a JSON object with a human&hyphen;readable description of a transaction&period;

== Synopsis

Declared in `&lt;core&lowbar;io&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
TxToUniv(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:uint256.adoc[uint256] const& block&lowbar;hash,
    xref:UniValue.adoc[UniValue]& entry,
    bool include&lowbar;hex = true,
    xref:CTxUndo.adoc[CTxUndo] const* txundo = nullptr,
    xref:TxVerbosity.adoc[TxVerbosity] verbosity = TxVerbosity&colon;&colon;SHOW&lowbar;DETAILS,
    std::function&lt;bool(xref:CTxOut.adoc[CTxOut] const&)&gt; is&lowbar;change&lowbar;func = &lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction to describe&period;
| *block&lowbar;hash*
| Hash of the block containing the transaction, or null if unconfirmed&period;
| *entry*
| JSON object populated with the transaction&apos;s fields&period;
| *include&lowbar;hex*
| When true, include the raw transaction as a hex string&period;
| *txundo*
| Optional undo data used to report the values and scripts of spent inputs&period;
| *verbosity*
| Level of detail to include for the transaction&apos;s data&period;
| *is&lowbar;change&lowbar;func*
| Optional predicate that reports whether an output is change&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
