[#CMutableTransaction-2constructor-0e] = xref:CMutableTransaction.adoc[CMutableTransaction]::CMutableTransaction :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<primitives/transaction.h>` Constructs an empty transaction with the default version. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:CMutableTransaction/2constructor-0d.adoc[CMutableTransaction](); ---- [.small]#xref:CMutableTransaction/2constructor-0d.adoc[_» more..._]# Constructs a mutable copy of an existing transaction. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:CMutableTransaction/2constructor-00.adoc[CMutableTransaction](xref:CTransaction.adoc[CTransaction] const& tx); ---- [.small]#xref:CMutableTransaction/2constructor-00.adoc[_» more..._]# Constructs a transaction by deserializing from a stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> xref:CMutableTransaction/2constructor-0b.adoc[CMutableTransaction]( xref:deserialize_type.adoc[deserialize_type] tag, Stream& s); ---- [.small]#xref:CMutableTransaction/2constructor-0b.adoc[_» more..._]# Constructs a transaction by deserializing with explicit parameters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> xref:CMutableTransaction/2constructor-02.adoc[CMutableTransaction]( xref:deserialize_type.adoc[deserialize_type] tag, xref:TransactionSerParams.adoc[TransactionSerParams] const& params, Stream& s); ---- [.small]#xref:CMutableTransaction/2constructor-02.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to copy from. | *tag* | Tag selecting the deserializing constructor. | *s* | The stream to read from. | *params* | Parameters controlling whether witness data is read. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#