How does the tx fee in sendmany method get calculated?

3

In sendmany there is a conf_target parameter with the comment "Confirmation target (in blocks)". Does that mean that Bitcoin Core implicitly calculates and sets a smart fee for a given block target?

If so what is the priorities if I:

  1. Set TX fee explicitly before
  2. Set conf_target == 1
  3. Set estimate_mode == UNSET

What will be the resulting fee rate on the transaction in each case?

Timopheym

Posted 2019-06-30T19:35:48.880

Reputation: 131

Answers

0

Judging by the source code, smartfee will be used (conf_target)

https://github.com/bitcoin/bitcoin/blob/6e9eda556717ad651a6a691db8d6dc68556285cb/src/wallet/fees.cpp#L38

/* User control of how to calculate fee uses the following parameter precedence:
   1. coin_control.m_feerate
   2. coin_control.m_confirm_target
   3. m_pay_tx_fee (user-set member variable of wallet)
   4. m_confirm_target (user-set member variable of wallet)
   The first parameter that is set is used.
*/

user96599

Posted 2019-06-30T19:35:48.880

Reputation: 1