<p>This is not possible and you should also mind, that the accounting system in bitcoin-core has been marked for deprecation.</p>

<p>The rawtx commands to not cooperate with accounts.</p>

<p>If possible, you should avoid accounts.</p>

CC BY-SA 3.0
2015-06-12T08:17:11.790Z
2015-06-12T08:17:11.790Z
Jonas Schnelli
<p>I've been playing with the <code>createrawtransaction</code>, <code>signrawtransaction</code>, and <code>sendrawtransaction</code> Bitcoin calls.</p>

<p>Let's say there are two accounts in my Wallet: Account1 and the default <code>""</code> account. Let's also say account balances are <code>"" = 0.00000000</code> and <code>Account1 = 0.50000000</code> and that the only UTXO in my Wallet references a Bitcoin address owned by Account1 as the output address and is in the amount of <code>0.50000000</code>.</p>

<p>When I create, sign, and send the transaction to another Wallet, the account balances appear as <code>"" = -0.50000000</code> and <code>Account1 = 0.50000000</code>, and the balance of my Wallet equals the obvious <code>0.00000000</code>.</p>

<p>Is there any way, when creating/signing/sending a transaction, that I can specify which account to send it from?</p>

<p>I'm familiar with the <code>sendfromaccount</code> call that would accomplish this, but I want to create my transactions manually so I can control the change (when necessary) and the transaction fees.</p>

CC BY-SA 3.0
2015-06-12T13:16:41.823Z
FYI the accounts feature [is being deprecated](https://github.com/bitcoin/bitcoin/issues/3816) in v0.11 and will probably be removed sometime thereafter because it has many [weaknesses](https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses) and misunderstandings as to how it works: [1](https://github.com/bitcoin/bitcoin/issues/2079) [2](https://github.com/bitcoin/bitcoin/issues/6042) [3](https://github.com/bitcoin/bitcoin/issues/4572)
Christopher Gurnee
CC BY-SA 3.0
2015-06-12T13:25:14.427Z
If you must use the account feature (*after* reading up on its weaknesses), create and send your raw tx and then use the "move" command to fix the account balances. Note that this won't be an [atomic operation](https://en.wikipedia.org/wiki/Atomicity_(database_systems)) (yet another weakness...).
Christopher Gurnee
<bitcoind>
create/sign/send raw transaction from specific Wallet account
maff1989
# create/sign/send raw transaction from specific Wallet account

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

I've been playing with the `createrawtransaction`, `signrawtransaction`, and `sendrawtransaction` Bitcoin calls.

Let's say there are two accounts in my Wallet: Account1 and the default `""` account. Let's also say account balances are `"" = 0.00000000` and `Account1 = 0.50000000` and that the only UTXO in my Wallet references a Bitcoin address owned by Account1 as the output address and is in the amount of `0.50000000`.

When I create, sign, and send the transaction to another Wallet, the account balances appear as `"" = -0.50000000` and `Account1 = 0.50000000`, and the balance of my Wallet equals the obvious `0.00000000`.

Is there any way, when creating/signing/sending a transaction, that I can specify which account to send it from?

I'm familiar with the `sendfromaccount` call that would accomplish this, but I want to create my transactions manually so I can control the change (when necessary) and the transaction fees.

**Tags:** bitcoind

> **Comments:**
> **username_1**: FYI the accounts feature [is being deprecated](https://github.com/bitcoin/bitcoin/issues/3816) in v0.11 and will probably be removed sometime thereafter because it has many [weaknesses](https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses) and misunderstandings as to how it works: [1](https://github.com/bitcoin/bitcoin/issues/2079) [2](https://github.com/bitcoin/bitcoin/issues/6042) [3](https://github.com/bitcoin/bitcoin/issues/4572)  
> **username_1**: If you must use the account feature (*after* reading up on its weaknesses), create and send your raw tx and then use the "move" command to fix the account balances. Note that this won't be an [atomic operation](https://en.wikipedia.org/wiki/Atomicity_(database_systems)) (yet another weakness...).  

---

## 1 answers

### Answer by username_2 on 2015-06-12. Score: 1

This is not possible and you should also mind, that the accounting system in bitcoin-core has been marked for deprecation.

The rawtx commands to not cooperate with accounts.

If possible, you should avoid accounts.


---

