paytxfee vs maxtxfee which one overrides the other

2

In wallet options section it shows these two settings

-paytxfee=<amt>  Fee (in BTC/kB) to add to transactions you send (default: 0.00)  
-maxtxfee=<amt>  Maximum total fees to use in a single wallet transaction, setting too low may abort large transactions (default: 0.10)  

If I set these two settings in the bitcoin.conf which one will override the other ? or how does in work ?

Mohamed Farrag

Posted 2015-08-04T12:23:33.583

Reputation: 215

Answers

1

One is per kilobyte, the other is a limit on the total.

The second will prevent a transaction from happening if it, following the first, has a too large fee.

Pieter Wuille

Posted 2015-08-04T12:23:33.583

Reputation: 54 032

Is it possible to pay fixed amount per transaction regardless the kilobytes?Mohamed Farrag 2015-08-04T12:43:49.940

2@Mohamed No, that wouldn't make sense. You're paying for space inside blocks, and miners prioritize transactions based on fee per byte. As you don't know the size of a transaction before creating it, specifying its exact fee would likely lead to unexpected behaviour.Pieter Wuille 2015-08-05T12:40:12.750

https://btc.com/stats/unconfirmed-tx tells you how long your transaction will take to "clear" if you pay a certain transaction fee. Paying 0 may take too long, but you can get away with paying very little if you don't mind a delay in your transaction entering the blockchain.Sun 2017-10-01T06:00:02.720