[#wallet-CreatedTransactionResult-2constructor]
= xref:wallet.adoc[wallet]::xref:wallet/CreatedTransactionResult.adoc[CreatedTransactionResult]::CreatedTransactionResult
:relfileprefix: ../../
:mrdocs:

Construct a result from the transaction, its fee, the change output position, and the fee reason&period;

== Synopsis

Declared in `&lt;wallet&sol;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CreatedTransactionResult(
    xref:CTransactionRef.adoc[CTransactionRef] &lowbar;tx,
    xref:CAmount.adoc[CAmount] &lowbar;fee,
    std::optional&lt;unsigned int&gt; &lowbar;change&lowbar;pos,
    xref:FeeReason.adoc[FeeReason] &lowbar;fee&lowbar;reason);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;tx*
| The newly created transaction&period;
| *&lowbar;fee*
| The fee paid by the transaction&period;
| *&lowbar;change&lowbar;pos*
| Position of the change output in the transaction, if any&period;
| *&lowbar;fee&lowbar;reason*
| The reason the transaction&apos;s fee rate was chosen&period;
|===


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