<p>Accounts are deprecated and <code>labels</code> are the alternative for <code>accounts</code>.</p>
<p>I'd recommend using latest Bitcoin <a href="https://bitcoin.org/en/release/v0.17.0" rel="nofollow noreferrer">0.17.0</a> which has multi wallet features which can isolate each user, further read:</p>
<blockquote>
<p><a href="https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Multi-wallet_RPC_calls" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Multi-wallet_RPC_calls</a></p>
<p><a href="https://github.com/bitcoin/bitcoin/pull/13058" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/13058</a></p>
</blockquote>

CC BY-SA 4.0
2018-10-15T08:57:32.063Z
2018-10-15T08:57:32.063Z
2020-06-16T11:10:03.350Z
Shahbaz
<p><code>sendtoaddress</code> Doesn't support accounts at all</p>

<pre><code>Parameter #1—to address
Parameter #2—amount to spend
Parameter #3—a comment
Parameter #4—a comment about who the payment was sent to
Result—a TXID of the sent transaction
</code></pre>

<p>What you can do as alternative is <code>getaccountaddress</code> to get bitcoin address of an account and then <code>sendtoaddress</code></p>

CC BY-SA 3.0
2018-02-09T05:10:25.407Z
actually i want to pick the source account..not the destination. By default sendtoaddress picks the "" account as source. Is it possible to pick any other account?
lambogambo
CC BY-SA 3.0
2018-02-09T13:33:39.157Z
Yes, put account name instead of "", like that "myaccount"
Tailer
CC BY-SA 3.0
2018-02-08T18:28:09.437Z
2018-02-08T18:28:09.437Z
Tailer
<p>First do <code>move</code> command to move bitcoins from custom account to "", for example</p>

<p><code>bitcoin-cli move "account_with_bitcoins" "" amount_to_send</code></p>

<p>And then use <code>sendtoaddress</code></p>

<p><code>bitcoin-cli sendtoaddress "address" amount_to_send</code></p>

CC BY-SA 3.0
2018-04-20T13:32:27.210Z
2018-04-20T13:32:27.210Z
Patrick Mil
<p>sendtoaddress is using the "" account by default. Is it possible to make it use any other account name?</p>

CC BY-SA 3.0
2018-02-08T19:29:41.490Z
You want `sendfrom`, but the whole account feature is deprecated so you should redesign your application to not use it at all.
Nate Eldredge
<bitcoin-core><json-rpc><sendtoaddress>
Can sendtoaddress use account other than ""?
lambogambo
# Can sendtoaddress use account other than ""?

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

sendtoaddress is using the "" account by default. Is it possible to make it use any other account name?

**Tags:** bitcoin-core, json-rpc, sendtoaddress

> **Comments:**
> **username_1**: You want `sendfrom`, but the whole account feature is deprecated so you should redesign your application to not use it at all.  

---

## 3 answers

### Answer by username_2 on 2018-10-15. Score: 1

Accounts are deprecated and `labels` are the alternative for `accounts`.

I'd recommend using latest Bitcoin [0.17.0](https://bitcoin.org/en/release/v0.17.0) which has multi wallet features which can isolate each user, further read:

> <https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Multi-wallet_RPC_calls>
>
> <https://github.com/bitcoin/bitcoin/pull/13058>


---

### Answer by username_3 on 2018-02-08. Score: 0

sendtoaddress Doesn't support accounts at all
Parameter #1—to address
Parameter #2—amount to spend
Parameter #3—a comment
Parameter #4—a comment about who the payment was sent to
Result—a TXID of the sent transaction

What you can do as alternative is getaccountaddress to get bitcoin address of an account and then sendtoaddress

> **Comments:**
> **username_0**: actually i want to pick the source account..not the destination. By default sendtoaddress picks the "" account as source. Is it possible to pick any other account?  
> **username_3**: Yes, put account name instead of "", like that "myaccount"  

---

### Answer by username_4 on 2018-04-20. Score: -1

First do `move` command to move bitcoins from custom account to "", for example

`bitcoin-cli move "account_with_bitcoins" "" amount_to_send`

And then use `sendtoaddress`

`bitcoin-cli sendtoaddress "address" amount_to_send`


---

