Bitcoin Forum
June 07, 2024, 04:02:57 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Questions about accounts vs btc addresses behaviour.  (Read 547 times)
jquiroga (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0



View Profile
October 02, 2012, 12:17:37 AM
 #1

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.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
October 02, 2012, 01:11:28 AM
 #2

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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
jquiroga (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0



View Profile
October 02, 2012, 03:11:16 AM
 #3

 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.



Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!