1

I made a sendfrom call specifying the fromaccount parameter. The resulting transaction created a change address which was not assigned to the account I specified. The address was not assigned to any account.

Why do you think this might have happened?

Also, do you think I can spend the amount on the change address by sending using sendfrom by specifying the same account?

1 Answer 1

1

You misunderstand how accounts work.

All coins in a wallet are always shared between all accounts. When creating a new transaction, the coins are taken from the entire set a wallet has access to - independent from how these were obtained.

Accounts are just bean counters - virtual balances. When a transaction is received that spends to address X, and address X has label L in your wallet, account L is credited with this receive. If you use sendmany or sendfrom and specify a from account, that accounts' balance is decreased by the amount of value that leaves your wallet through that transaction.

Change does not exist in this high level view. It is not money that is entering or leaving your wallet, and thus cannot affect any balance.

Accounts are a confusing feature, its use cases are limited, and have several implementation problem. In many cases, people assume they behave as independent wallets, which is not the case. They may be removed in some later version.

1
  • Thanks! In light of your explanation, I seriously don't get why they exist.
    – Emre Kenci
    Jan 10, 2014 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.