<p>You can do one thing when running <code>bitcoin-cli paytxfee 0.1</code> command, you can run command to update value of <code>paytxfee</code> inside <code>bitcoind.conf</code> file.</p>

<p>like this:</p>

<pre><code>bitcoin-cli paytxfee NEW_AMOUNT &amp;&amp; sed -i 's/paytxfee=OLD_AMOUNT/paytxfee=NEW_AMOUNT/g' ~/.bitcoin/bitcoin.conf 
</code></pre>

<p>This will set fee for current session also when you restart bitcoin core price will not alter. </p>

CC BY-SA 3.0
2017-12-28T08:39:13.650Z
2017-12-28T08:39:13.650Z
Ajit Soman
<p>You can make it persistent by adding a line <code>paytxfee=0.1</code> to your <code>bitcoin.conf</code> file.</p>

<p>You cannot make <code>bitcoind</code> persist the result of the <code>paytxfee</code> RPC.</p>

CC BY-SA 3.0
2017-12-26T16:15:38.803Z
2017-12-26T19:19:14.890Z
2017-12-26T19:19:14.890Z
Pieter Wuille
<p>I have set default <code>paytxfee</code> of 0.001 in <code>bitcoin.conf</code> file. I have updated <code>paytxfee</code> value via <code>bitcoin-cli paytxfee 0.1</code> when I restarted bitcoin core value reset back to 0.001. is there is anyway i can set fee permanently.</p>

CC BY-SA 3.0
2017-12-26T14:28:47.380Z
set the fee while sending.
Tailer
<bitcoin-core><bitcoind>
How can i set fee permanently via paytxfee command
Dipen Chawla
# How can i set fee permanently via paytxfee command

(Asked by: username_0 on 2017-12-26)

I have set default `paytxfee` of 0.001 in `bitcoin.conf` file. I have updated `paytxfee` value via `bitcoin-cli paytxfee 0.1` when I restarted bitcoin core value reset back to 0.001. is there is anyway i can set fee permanently.

**Tags:** bitcoin-core, bitcoind

> **Comments:**
> **username_1**: set the fee while sending.  

---

## 2 answers

### Answer by username_2 on 2017-12-28. Score: 2

You can do one thing when running `bitcoin-cli paytxfee 0.1` command, you can run command to update value of `paytxfee` inside `bitcoind.conf` file.

like this:

```
bitcoin-cli paytxfee NEW_AMOUNT && sed -i 's/paytxfee=OLD_AMOUNT/paytxfee=NEW_AMOUNT/g' ~/.bitcoin/bitcoin.conf 

```

This will set fee for current session also when you restart bitcoin core price will not alter.


---

### Answer by username_3 on 2017-12-26. Score: 1

You can make it persistent by adding a line `paytxfee=0.1` to your `bitcoin.conf` file.

You cannot make `bitcoind` persist the result of the `paytxfee` RPC.


---

