Create bumpfee transaction based on feerate estimates.
Declared in <wallet/feebumper.h>
Result
CreateRateBumpTransaction(
CWallet& wallet,
Txid const& txid,
CCoinControl const& coin_control,
std::vector<bilingual_str>& errors,
CAmount& old_fee,
CAmount& new_fee,
CMutableTransaction& mtx,
bool require_mine,
std::vector<CTxOut> const& outputs,
std::optional<uint32_t> original_change_index = std::nullopt);
Result::OK on success, or an error code describing why the bump transaction could not be created
| 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 |