[#wallet-CWalletTx-2constructor-0b]
= xref:wallet.adoc[wallet]::xref:wallet/CWalletTx.adoc[CWalletTx]::CWalletTx
:relfileprefix: ../../
:mrdocs:

Construct a wallet transaction from a transaction reference and its state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CWalletTx(
    xref:CTransactionRef.adoc[CTransactionRef] tx,
    xref:wallet/TxState.adoc[TxState] const& state);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction reference to wrap&period;
| *state*
| The initial confirmation state of the transaction&period;
|===


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