[#wallet-feebumper-CreateRateBumpTransaction] = xref:wallet.adoc[wallet]::xref:wallet/feebumper.adoc[feebumper]::CreateRateBumpTransaction :relfileprefix: ../../ :mrdocs: Create bumpfee transaction based on feerate estimates. == Synopsis Declared in `<wallet/feebumper.h>` [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_control, std::vector<bilingual_str>& errors, xref:CAmount.adoc[CAmount]& old_fee, xref:CAmount.adoc[CAmount]& new_fee, xref:CMutableTransaction.adoc[CMutableTransaction]& mtx, bool require_mine, std::vector<CTxOut> const& outputs, std::optional<uint32_t> original_change_index = std::nullopt); ---- == Return Value Result::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_control* [in] | A CCoinControl object which provides feerates and other information used for coin selection | *errors* [out] | Errors | *old_fee* [out] | The fee the original transaction pays | *new_fee* [out] | the fee that the bump transaction pays | *mtx* [out] | The bump transaction itself | *require_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's outputs | *original_change_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]#