[#wallet-feebumper-CreateRateBumpTransaction]
= xref:wallet.adoc[wallet]::xref:wallet/feebumper.adoc[feebumper]::CreateRateBumpTransaction
:relfileprefix: ../../
:mrdocs:

Create bumpfee transaction based on feerate estimates&period;

== Synopsis

Declared in `&lt;wallet&sol;feebumper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/feebumper/Result.adoc[Result]
CreateRateBumpTransaction(
    xref:wallet/CWallet.adoc[CWallet]& wallet,
    xref:Txid.adoc[Txid] const& txid,
    xref:wallet/CCoinControl.adoc[CCoinControl] const& coin&lowbar;control,
    std::vector&lt;bilingual&lowbar;str&gt;& errors,
    xref:CAmount.adoc[CAmount]& old&lowbar;fee,
    xref:CAmount.adoc[CAmount]& new&lowbar;fee,
    xref:CMutableTransaction.adoc[CMutableTransaction]& mtx,
    bool require&lowbar;mine,
    std::vector&lt;CTxOut&gt; const& outputs,
    std::optional&lt;uint32&lowbar;t&gt; original&lowbar;change&lowbar;index = std&colon;&colon;nullopt);
----

== Return Value

Result&colon;&colon;OK on success, or an error code describing why the bump transaction could not be created

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet* [in]
| The wallet to use for this bumping
| *txid* [in]
| The txid of the transaction to bump
| *coin&lowbar;control* [in]
| A CCoinControl object which provides feerates and other information used for coin selection
| *errors* [out]
| Errors
| *old&lowbar;fee* [out]
| The fee the original transaction pays
| *new&lowbar;fee* [out]
| the fee that the bump transaction pays
| *mtx* [out]
| The bump transaction itself
| *require&lowbar;mine* [in]
| Whether the original transaction must consist of inputs that can be spent by the wallet
| *outputs* [in]
| Vector of new outputs to replace the bumped transaction&apos;s outputs
| *original&lowbar;change&lowbar;index* [in]
| The position of the change output to deduct the fee from in the transaction being bumped
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
