<p><code>sendfrom</code> has these parameters:</p>

<pre><code>sendfrom "fromaccount" "toaddress" amount , minconf, "comment" "comment_to"
</code></pre>

<p>As you can see there is no <code>subtractfeefromamount</code> boolean parameter.So you can't deduct fee from the amount itself.</p>

<p>You can use <code>sendmany</code> option with single destination address. <code>sendmany</code> has these parameter:</p>

<p><code>sendmany "fromaccount" {"address":amount,...} ,minconf, "comment", subtractfeefrom</code></p>

<p>Here <code>subtractfeefrom</code> in above parameter accept array of address from which fee will be deducted.</p>

<p>example: </p>

<pre><code>bitcoin-cli sendmany "1521" "{\"n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1\":0.01}" 1 "" "[\"n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1\"]"
</code></pre>

<p><code>n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1</code> will get 0.0098(approx) and not 0.01</p>

CC BY-SA 3.0
2018-02-03T09:01:54.953Z
question is about sendFrom command not about sendmany. :)
Roman Kiselenko
CC BY-SA 3.0
2018-02-03T09:13:52.937Z
Yes you are right. But `sendfrom` has no `subtractfeefromamount` option but `sendmany` does. `sendmany` with single recipient address is equivalent to `sendfrom` . also `sendtoaddress` has no `fromaccount` option
Ajit Soman
CC BY-SA 3.0
2018-02-03T12:00:32.060Z
Thanks Ajit sendmany has subtractfeefromamount option and sendfrom does not have and this helped me to fix my problem.
Dipen Chawla
CC BY-SA 3.0
2018-02-03T06:29:14.727Z
2018-02-03T06:47:49.870Z
2018-02-03T06:47:49.870Z
Ajit Soman
<blockquote>
  <p>I am using Bitcoin JSON RPC 14 version so how can I use sendFrom
  command in the case of fee inclusive.</p>
</blockquote>

<bitcoind><json-rpc>
sendFrom with fee inclusive
Dipen Chawla
# sendFrom with fee inclusive

(Asked by: username_0 on 2018-02-02)

> I am using Bitcoin JSON RPC 14 version so how can I use sendFrom
> command in the case of fee inclusive.

**Tags:** bitcoind, json-rpc


---

## 1 answers

### Answer by username_1 on 2018-02-03. Score: 1 | Accepted answer

`sendfrom` has these parameters:

```
sendfrom "fromaccount" "toaddress" amount , minconf, "comment" "comment_to"

```

As you can see there is no `subtractfeefromamount` boolean parameter.So you can't deduct fee from the amount itself.

You can use `sendmany` option with single destination address. `sendmany` has these parameter:

`sendmany "fromaccount" {"address":amount,...} ,minconf, "comment", subtractfeefrom`

Here `subtractfeefrom` in above parameter accept array of address from which fee will be deducted.

example:

```
bitcoin-cli sendmany "1521" "{\"n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1\":0.01}" 1 "" "[\"n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1\"]"

```

`n3jYBjCzgGNydQwf83Hz6GBzGBhMkKfgL1` will get 0.0098(approx) and not 0.01

> **Comments:**
> **username_2**: question is about sendFrom command not about sendmany. :)  
> **username_1**: Yes you are right. But `sendfrom` has no `subtractfeefromamount` option but `sendmany` does. `sendmany` with single recipient address is equivalent to `sendfrom` . also `sendtoaddress` has no `fromaccount` option  
> **username_0**: Thanks username_1 sendmany has subtractfeefromamount option and sendfrom does not have and this helped me to fix my problem.  

---

