[#EncodeHexTx]
= EncodeHexTx
:mrdocs:

Serialize a transaction and encode it as a hex string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
EncodeHexTx(xref:CTransaction.adoc[CTransaction] const& tx);
----

== Return Value

The hex&hyphen;encoded serialized transaction&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction to encode&period;
|===


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