[#CMutableTransaction] = CMutableTransaction :mrdocs: A mutable version of CTransaction. == Synopsis Declared in `<primitives/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CMutableTransaction; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:CMutableTransaction/2constructor-0e.adoc[`CMutableTransaction`] [.small]#[constructor]# | Constructors | xref:CMutableTransaction/GetHash.adoc[`GetHash`] | Compute the hash of this CMutableTransaction. This is computed on the fly, as opposed to GetHash() in CTransaction, which uses a cached result. | xref:CMutableTransaction/HasWitness.adoc[`HasWitness`] | Returns true when any input carries witness data. | xref:CMutableTransaction/Serialize.adoc[`Serialize`] | Serializes the transaction using the stream's transaction parameters. | xref:CMutableTransaction/Unserialize.adoc[`Unserialize`] | Unserializes the transaction using the stream's transaction parameters. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:CMutableTransaction/nLockTime.adoc[`nLockTime`] | Lock time before which the transaction is not valid. | xref:CMutableTransaction/version.adoc[`version`] | Transaction version number. | xref:CMutableTransaction/vin.adoc[`vin`] | Inputs spent by this transaction. | xref:CMutableTransaction/vout.adoc[`vout`] | Outputs created by this transaction. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:AddInputs.adoc[`AddInputs`] | Normalize univalue‐represented inputs and add them to the transaction | xref:AddOutputs.adoc[`AddOutputs`] | Normalize, parse, and add outputs to the transaction | xref:ConstructTransaction.adoc[`ConstructTransaction`] | Create a transaction from univalue parameters | xref:DataFromTransaction.adoc[`DataFromTransaction`] | Extract signature data from a transaction input, and insert it. | xref:DecodeHexTx.adoc[`DecodeHexTx`] | Decode a hex‐encoded serialized transaction. | xref:SignTransaction-01.adoc[`SignTransaction`] | Sign the CMutableTransaction | xref:SignTransaction-06.adoc[`SignTransaction`] | Sign a transaction with the given keystore and previous transactions | xref:SignTransactionResultToJSON.adoc[`SignTransactionResultToJSON`] | Encode the outcome of a signing attempt as a JSON object | xref:wallet/DiscourageFeeSniping.adoc[`wallet::DiscourageFeeSniping`] | Set a height‐based locktime for new transactions (uses the height of the current chain tip unless we are not synced with the current chain |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#