A mutable version of CTransaction.
Declared in <primitives/transaction.h>
struct CMutableTransaction;
| Name | Description |
|---|---|
CMutableTransaction [constructor] | Constructors |
GetHash | Compute the hash of this CMutableTransaction. This is computed on the fly, as opposed to GetHash() in CTransaction, which uses a cached result. |
HasWitness | Returns true when any input carries witness data. |
Serialize | Serializes the transaction using the stream's transaction parameters. |
Unserialize | Unserializes the transaction using the stream's transaction parameters. |
| Name | Description |
|---|---|
nLockTime | Lock time before which the transaction is not valid. |
version | Transaction version number. |
vin | Inputs spent by this transaction. |
vout | Outputs created by this transaction. |
| Name | Description |
|---|---|
AddInputs | Normalize univalue-represented inputs and add them to the transaction |
AddOutputs | Normalize, parse, and add outputs to the transaction |
ConstructTransaction | Create a transaction from univalue parameters |
DataFromTransaction | Extract signature data from a transaction input, and insert it. |
DecodeHexTx | Decode a hex-encoded serialized transaction. |
SignTransaction | Sign the CMutableTransaction |
SignTransaction | Sign a transaction with the given keystore and previous transactions |
SignTransactionResultToJSON | Encode the outcome of a signing attempt as a JSON object |
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 |