user15119: 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.

user-1: Considering that whatever program (or human) you use to call the API will be able to perform a simple addition or subtraction, this boils down to determining the exact fee to be used. The getinfo (returning the current default fee as in field paytxfee) and settxfee (for changing it) API calls should do that for you. Be careful about details---the blockchain.info API reference warns that the changes you make via settxfee are only valid for the next 24 hours. I have not checked if that information is up-to-date, and if it indeed refers to the bitcoin core behavior or merely to blockchain.info's "Bitcoind compatible" API.

user56575: https://chainquery.com/bitcoin-api/sendtoaddress
You can use last (5th) parameter:

subtractfeefromamount  (boolean, optional, default=false) The fee will be deducted from the amount being sent. The recipient will receive less bitcoins than you enter in the amount field.


15119: <p>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)</p>

<p>Please, help and tell if that possible to achieve such result.</p>
 -1: <p>Considering that whatever program (or human) you use to call the API will be able to perform a simple addition or subtraction, this boils down to determining the exact fee to be used. The <code>getinfo</code> (returning the current default fee as in field <code>paytxfee</code>) and <code>settxfee</code> (for changing it) API calls should do that for you. Be careful about details---<a href="https://blockchain.info/api/json_rpc_api" rel="nofollow">the blockchain.info API reference</a> warns that the changes you make via <code>settxfee</code> are only valid for the next 24 hours. I have not checked if that information is up-to-date, and if it indeed refers to the bitcoin core behavior or merely to blockchain.info's "Bitcoind compatible" API.</p>
 56575: <p><a href="https://chainquery.com/bitcoin-api/sendtoaddress" rel="nofollow noreferrer">https://chainquery.com/bitcoin-api/sendtoaddress</a></p>

<p>You can use last (5th) parameter:</p>

<ol start="5">
<li>subtractfeefromamount  (boolean, optional, default=false) The fee will be deducted from the amount being sent. The recipient will receive less bitcoins than you enter in the amount field.</li>
</ol>
