I am using sendtoaddress API call. The problem is that I need to specify amount that includes fees. For example, if I withdraw 1 btc, I need bitcoind to deduct fees from that amount and in example to send 0.999 as transaction amount and 0.001 as fee (or any other fee amount that recommended for this transaction)
Please, help and tell if that possible to achieve such result.
bitcoind
accepts this as well now – Pieter Wuille Aug 11 '17 at 05:54