[#ConstructTransaction]
= ConstructTransaction
:mrdocs:

Create a transaction from univalue parameters

== Synopsis

Declared in `&lt;rpc&sol;rawtransaction&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CMutableTransaction.adoc[CMutableTransaction]
ConstructTransaction(
    xref:UniValue.adoc[UniValue] const& inputs&lowbar;in,
    xref:UniValue.adoc[UniValue] const& outputs&lowbar;in,
    xref:UniValue.adoc[UniValue] const& locktime,
    std::optional&lt;bool&gt; rbf,
    uint32&lowbar;t version);
----

== Return Value

The constructed transaction&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *inputs&lowbar;in*
| The univalue array of transaction inputs&period;
| *outputs&lowbar;in*
| The univalue transaction outputs&period;
| *locktime*
| The transaction locktime, if provided&period;
| *rbf*
| Whether to signal replace&hyphen;by&hyphen;fee, if provided&period;
| *version*
| The transaction version number&period;
|===


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