settxfee
settxfee amount (DEPRECATED) Set the transaction fee rate in BTC/kvB for this wallet. Overrides the global -paytxfee command line parameter. Can be deactivated by passing 0 as the fee. In that case automatic fee selection will be used by default. Arguments: 1. amount (numeric or string, required) The transaction fee rate in BTC/kvB Result: true|false (boolean) Returns true if successful Examples: > bitcoin-cli settxfee 0.00001 > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "settxfee", "params": [0.00001]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
settxfee(amount: any) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"settxfee","params":["\"<amount>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| amount | number | string | yes | The transaction fee rate in BTC/kvB |
Result
Type: any
true|false (boolean) Returns true if successful
Source: services/core-node/bcore/src/wallet/rpc/spend.cpp:577
C++ symbol: settxfee