<p>You cannot send from an address. All the coins inside a wallet are always treated as a single balance, for privacy reasons.</p>

<p>All <code>sendfrom</code> does is deduct the money you're sending from the virtual local account with that name. You can move money to those accounts using the <code>move</code> command. Received coins are by default credited to the "" account. Still, these accounts have nothing to do with actual coins on the network. This account system is scheduled for deprecation, though.</p>

<p>If you want to manually select the coins to use, look into the <code>listunspent</code>, <code>createrawtransaction</code>, <code>signrawtransaction</code> and <code>sendrawtransaction</code> RPC calls.</p>

CC BY-SA 3.0
2015-12-06T15:03:47.590Z
2015-12-06T15:03:47.590Z
Pieter Wuille
<p>The first parameter of 'sendfrom' should be an account.You can use 'setaccount' to set an account name to a particular address, and then use 'sendfrom'</p>

CC BY-SA 3.0
2017-09-25T03:15:15.700Z
Note that accounts are deprecated.
Murch
CC BY-SA 3.0
2017-09-25T02:54:02.160Z
2017-09-25T02:54:02.160Z
Peili Liang
<p>I'd like to send bitcoin from the specific address to a address using bitcoin api. I used 'sendfrom' as follows. Each address "mqXhhivMPjeVvdVMR239EVDJiRGQUYcbDZ" and "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf" has bitcoin more than 0.002btc, however it returned the "insufficient funds" error. Could you tell me how to send from the specific address?</p>

<pre><code>bitcoin-cli sendfrom mqXhhivMPjeVvdVMR239EVDJiRGQUYcbDZ mknGW629wzSkfWvgXF23d8eTrqibnhTcrf 0.002

Account has insufficient funds
</code></pre>

<bitcoind><client><bitcoin-cli>
How to send btc from the specific address using bitcoin api?
Toshi
# How to send btc from the specific address using bitcoin api?

(Asked by: username_0 on 2015-12-06)

I'd like to send bitcoin from the specific address to a address using bitcoin api. I used 'sendfrom' as follows. Each address "mqXhhivMPjeVvdVMR239EVDJiRGQUYcbDZ" and "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf" has bitcoin more than 0.002btc, however it returned the "insufficient funds" error. Could you tell me how to send from the specific address?
bitcoin-cli sendfrom mqXhhivMPjeVvdVMR239EVDJiRGQUYcbDZ mknGW629wzSkfWvgXF23d8eTrqibnhTcrf 0.002

Account has insufficient funds

**Tags:** bitcoind, client, bitcoin-cli


---

## 2 answers

### Answer by username_1 on 2015-12-06. Score: 1 | Accepted answer

You cannot send from an address. All the coins inside a wallet are always treated as a single balance, for privacy reasons.

All `sendfrom` does is deduct the money you're sending from the virtual local account with that name. You can move money to those accounts using the `move` command. Received coins are by default credited to the "" account. Still, these accounts have nothing to do with actual coins on the network. This account system is scheduled for deprecation, though.

If you want to manually select the coins to use, look into the `listunspent`, `createrawtransaction`, `signrawtransaction` and `sendrawtransaction` RPC calls.


---

### Answer by username_2 on 2017-09-25. Score: 0

The first parameter of 'sendfrom' should be an account.You can use 'setaccount' to set an account name to a particular address, and then use 'sendfrom'

> **Comments:**
> **username_3**: Note that accounts are deprecated.  

---

