[#wallet-CWalletTx-2constructor-09] = xref:wallet.adoc[wallet]::xref:wallet/CWalletTx.adoc[CWalletTx]::CWalletTx :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<wallet/transaction.h>` Deleted copy constructor; CWalletTx objects must not be copied. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/CWalletTx/2constructor-03.adoc[CWalletTx](xref:wallet/CWalletTx.adoc[CWalletTx] const& other) = delete; ---- [.small]#xref:wallet/CWalletTx/2constructor-03.adoc[_» more..._]# Enable the default move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:wallet/CWalletTx/2constructor-01.adoc[CWalletTx](xref:wallet/CWalletTx.adoc[CWalletTx]&& other) = default; ---- [.small]#xref:wallet/CWalletTx/2constructor-01.adoc[_» more..._]# Construct a wallet transaction from a transaction reference and its state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/CWalletTx/2constructor-0b.adoc[CWalletTx]( xref:CTransactionRef.adoc[CTransactionRef] tx, xref:wallet/TxState.adoc[TxState] const& state); ---- [.small]#xref:wallet/CWalletTx/2constructor-0b.adoc[_» more..._]# Construct a wallet transaction by deserializing it, merging any witness variants. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> xref:wallet/CWalletTx/2constructor-02.adoc[CWalletTx]( xref:deserialize_type.adoc[deserialize_type] type, Stream& s, std::map<Wtxid, CTransactionRef> const& variants); ---- [.small]#xref:wallet/CWalletTx/2constructor-02.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The wallet transaction to move from. | *tx* | The transaction reference to wrap. | *state* | The initial confirmation state of the transaction. | *type* | Tag selecting the deserializing constructor overload. | *s* | The input stream to deserialize the transaction from. | *variants* | Additional witness variants to merge, keyed by witness txid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#