The wallet RPC settxfee
sets the fee rate for a wallet.
Current help text:
0Set the transaction fee rate in BTC/kvB for this wallet. Overrides the global -paytxfee command line parameter.
1Can be deactivated by passing 0 as the fee. In that case automatic fee selection will be used by default.
2
3Arguments:
41. amount (numeric or string, required) The transaction fee rate in BTC/kvB
5
6Result:
7true|false (boolean) Returns true if successful
This is a misnomer, as stated here #29278 (review) so should instead be setfeerate
@jonatack suggested a safer approach to avoid breaking things
(see: #20484 (comment)). I think this is better approach than just renaming the settxfee
RPC to setfeerate
?
- Add
setfeerate
RPC which is a mirror ofsettxfee
but insat/vB
. - Keep
settxfee
hidden, but prefer thesetfeerate
RPC in future use. - Eventually deprecate
settxfee
.
This issue is limited to fixing the ambiguity in settxfee
.