<p><a href="https://en.bitcoin.it/wiki/Accounts_explained" rel="nofollow">Accounts</a> are purely a client-side feature. It's just a virtual balance, allowing you for example to maintain a balance for different users of your wallet.</p>

<p>All coins in a wallet are always shared among all accounts, so the 'from account' field does not influence the actual transaction created in any way, or which inputs are used for it. It simply changes which virtual balance the amount is deducted from.</p>

<p>If you really are using the accounts feature (unlikely, it's only useful for a limited number of use cases), and really need to send 'from' different accounts, use the <code>move</code> command (which is local only, and doesn't construct any Bitcoin transactions) to move amounts from one account to another to correct before or afterwards.</p>

CC BY-SA 3.0
2013-06-13T08:18:29.987Z
2013-06-13T08:18:29.987Z
Pieter Wuille
<p>It seems that I can do <code>sendmany(fromaccount, {address:amount,...})</code> which can have multiple outputs with one account, and <code>sendtoaddress(bitcoinaddress, amount)</code> can have one output with any amount of accounts. Is there a way to have multiple outputs with any number of accounts? I have small amounts of bitcoins distributed amount different accounts and I would like to put them in one transaction to minimize fees. It's odd that there is no rpc call for such a function, or am I completely missing something? Or is there a work around I can do?</p>

<bitcoind><json-rpc>
RPC sendmany with multiple accounts?
user299648
# RPC sendmany with multiple accounts?

(Asked by: username_0 on 2013-06-13)

It seems that I can do `sendmany(fromaccount, {address:amount,...})` which can have multiple outputs with one account, and `sendtoaddress(bitcoinaddress, amount)` can have one output with any amount of accounts. Is there a way to have multiple outputs with any number of accounts? I have small amounts of bitcoins distributed amount different accounts and I would like to put them in one transaction to minimize fees. It's odd that there is no rpc call for such a function, or am I completely missing something? Or is there a work around I can do?

**Tags:** bitcoind, json-rpc


---

## 1 answers

### Answer by username_1 on 2013-06-13. Score: 2 | Accepted answer

[Accounts](https://en.bitcoin.it/wiki/Accounts_explained) are purely a client-side feature. It's just a virtual balance, allowing you for example to maintain a balance for different users of your wallet.

All coins in a wallet are always shared among all accounts, so the 'from account' field does not influence the actual transaction created in any way, or which inputs are used for it. It simply changes which virtual balance the amount is deducted from.

If you really are using the accounts feature (unlikely, it's only useful for a limited number of use cases), and really need to send 'from' different accounts, use the `move` command (which is local only, and doesn't construct any Bitcoin transactions) to move amounts from one account to another to correct before or afterwards.


---

