3

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.

1
  • set the fee while sending.
    – Tailer
    Dec 26, 2017 at 14:28

2 Answers 2

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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.