So the bitcoin deamon with wallet is useless?
Not useless. Very useful. Just not useful the way you are trying to use it. You need to learn more about how accounts and addresses work in the daemon, and then do a lot of testing to make sure you didn't misunderstand something.
- So what you state if we use "move *order1* *order2* *fullamount* " option the bitcoindeamon wont necessarily move the balance on the account
I assume you are asking about the following command from the API?
It will update the "account". It will not update any "addresses".
that will be moved but can also use amount (balance) from other accounts in the deamon?
No. It will only update the accounts that you you indicate in the "move" command, but it won't update ANY addresses at all.
- Or if we use "sendfrom *order1* *otheraddress* *amount* " it is possible it takes the balance from another account for this transaction? (If balance isnt enough on this account)
No. It will update the "account" that you indicate, but you won't have any control over which "addresses" the bitcoins that are spent were received at.
If i understand :
Bitcoin deamon is one wallet,
Yes.
one wallet can have multiple accounts,
Yes.
accounts can hold multiple addresses,
No. Accounts don't "hold" addresses. One or more addresses can be associated with accounts for
receiving bitcoins. If you associate an address with an account, then any bitcoins that are
received at that address are credited to the associated account. However, when you
send bitcoins, you don't have any control over which addresses that sent bitcoins were previously received on unless you are creating raw transactions.
you can move funds between accounts but not between addresses.
Correct. If you want to move funds between addresses, then you need to create a transaction, broadcast it to the bitcoin network, and wait for a miner to confirm it.
You can check balance of a account but not of a address.
You can check the balance of an address, but it is complex. You need to run the command "listunspent" and then add up the values of all of the unspent outputs that were received at that address in the wallet.
You can sent from an account but not from an address.
Correct. Addresses are used to control how bitcoins are received, not how they are sent. Unspent outputs (identified by an transactionID and an index) are used to control how bitcoins are sent.
i understand the diff between accounts and addresses,
I'm still not sure that you do, but you are getting close.
one account can have many addresses.
No. Accounts don't "have" addresses. One or more addresses can be associated with accounts for
receiving bitcoins. If you associate an address with an account, then any bitcoins that are
received at that address are credited to the associated account. However, when you
send bitcoins, you don't have any control over which addresses that sent bitcoins were previously received on unless you are creating raw transactions.
We are going to make a account for each order. So all accounts will only have one address. This makes it easyer to check balance of the address and to sent money from a particulair address
No it doesn't.
(you sendfrom an account, but if an account only has one address it will come from that address)
I don't think you can depend on this.