How can i set fee permanently via paytxfee command

3

0

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.

Dipen Chawla

Posted 2017-12-26T11:51:58.507

Reputation: 73

set the fee while sending.Adam 2017-12-26T14:28:47.380

Answers

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.

Ajit Soman

Posted 2017-12-26T11:51:58.507

Reputation: 405

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.

Pieter Wuille

Posted 2017-12-26T11:51:58.507

Reputation: 54 032