How can I set a fixed fee sufficient for transaction success in bitcoind?

3

1

I used to use sendtoaddress with bitcoind and a fixed 0.0001 btc transaction fee in the wallet UI to do the job and every transaction was sent without any problems.

Since version v0.12.0 I can see that the fee is not fixed, plus some transactions don't transmit to the network.

How can I send transaction with bitcoind that will be 100% relayed ?

Haddar Macdasi

Posted 2016-06-14T07:52:01.063

Reputation: 845

Answers

1

You can try:

txconfirmtarget=1

If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: 6).

So putting it equal to 1 will automatically set the fee to be included in the next block.

Note that this isn't a "fixed amount solution".

Marc Alexander

Posted 2016-06-14T07:52:01.063

Reputation: 531

Since 0.14, you cannot ask for a confirmation target of 1 anymore, because there is basically no fee that can guarantee inclusion into the next block (it may happen within seconds, giving miners not enough time to include it). If you ask for 1, it will be rounded up to 2, or whatever number sufficient data is available for.Pieter Wuille 2017-08-06T03:38:44.057

-3

bitcoind by default has fee set to zero, change fee by running

:bitcoind settxfee 0.0001

kdev29181

Posted 2016-06-14T07:52:01.063

Reputation: 1

But this will set a default per kilobyte , and not static per the all transaction .Haddar Macdasi 2016-06-14T08:09:55.247

1I sincerely doubt that bitcoind defaults to a zero fee.Murch 2016-06-15T11:30:09.463