[#wallet-CWalletTx-2constructor-02] = xref:wallet.adoc[wallet]::xref:wallet/CWalletTx.adoc[CWalletTx]::CWalletTx :relfileprefix: ../../ :mrdocs: Construct a wallet transaction by deserializing it, merging any witness variants. == Synopsis Declared in `<wallet/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> CWalletTx( xref:deserialize_type.adoc[deserialize_type] type, Stream& s, std::map<Wtxid, CTransactionRef> const& variants); ---- == Parameters [cols="1,4"] |=== | Name| Description | *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]#