Author

Topic: Questions about accounts vs btc addresses behaviour. (Read 557 times)

newbie
Activity: 10
Merit: 0
 Thank you for your response.

Then suppose I have a btc address addr1 tagged with name acc1 (account). Only one address for that account.

If I understand well, it is possible to have the following situation.

I have received since block 1 a total of 500 BTC in addr1, and they have more than 6 confirmations.
getbalance acc1 returns only 100 BTC because I have only received 100 after the time I did a setaccount addr1 acc1.

If that is the case is there a json-rpc call that explores the block chain an tells me the real balance of a
btc address ? That is:

sum(input txs to addr1 since block 1) - sum(output txs from addr1 since block 1) ?

Does getreceivedbyaddress "Returns  the  total amount received by 'bitcoinaddress' in transactions with at least ['minconf'] confirmations" SINCE BLOCK 1? Or just since it was added to the current wallet?

If that is the case, then what about an rpc call for what has been transfered from addr1 since block 1?

Thanks again.



kjj
legendary
Activity: 1302
Merit: 1026
Accounts are just a local bookkeeping feature, just some numbers to help you keep track of stuff.  They have absolutely no other meaning, and the network knows nothing about them.

You can tag an address with a label (account), and the system will keep track of how much comes in to that label (account).  When paying out, you can also choose to have the payment amount deducted from the balance for some label (account).

The move command just reduces the number associated with one label (account) and increase the number associated with another.

To answer your specific questions:

1.  No.
2.  No.  Never.  Never.
newbie
Activity: 10
Merit: 0
It says on

https://en.bitcoin.it/wiki/Accounts_explained

that

"Moves are not broadcast to the network, and never incur transaction fees; they just adjust account balances in the wallet."

1. Since btc addresses are assigned to accounts, do they get automatically reassigned to a receiving account during a 'move' when enough bitcoins of a given address are moved to that account?

2. Suppose I have one account per btc address, and move some coins from acc1 to acc2 but not all the balance, does that transaccion gets ever reflected in the public bitcoin network block chain? When? At the moment I do a sendfrom to an external btc address?

Thanks.
Jump to: