[#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. == Synopsis Declared in `<wallet/transaction.h>` [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. | *state* | The initial confirmation state of the transaction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#