[#wallet-CreatedTransactionResult-2constructor] = xref:wallet.adoc[wallet]::xref:wallet/CreatedTransactionResult.adoc[CreatedTransactionResult]::CreatedTransactionResult :relfileprefix: ../../ :mrdocs: Construct a result from the transaction, its fee, the change output position, and the fee reason. == Synopsis Declared in `<wallet/types.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CreatedTransactionResult( xref:CTransactionRef.adoc[CTransactionRef] _tx, xref:CAmount.adoc[CAmount] _fee, std::optional<unsigned int> _change_pos, xref:FeeReason.adoc[FeeReason] _fee_reason); ---- == Parameters [cols="1,4"] |=== | Name| Description | *_tx* | The newly created transaction. | *_fee* | The fee paid by the transaction. | *_change_pos* | Position of the change output in the transaction, if any. | *_fee_reason* | The reason the transaction's fee rate was chosen. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#