Bitcoin Forum
June 17, 2024, 03:36:46 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getbalance and getreceivedbyaccount  (Read 2153 times)
codler (OP)
Full Member
***
Offline Offline

Activity: 191
Merit: 100



View Profile
July 30, 2011, 04:18:49 PM
Last edit: August 01, 2011, 03:18:25 PM by codler
 #1

What is the difference between RPC command "getbalance account" and "getreceivedbyaccount account"?

remmy
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile WWW
August 01, 2011, 11:59:42 PM
 #2

I believe getreceivedbyaccount sums incoming transactions, but getbalance sums all transactions (sent, received, mined, fees) on a given account.

For example, if an account received 200 BTC, then subsequently sent 20 BTC, the functions would return 200 BTC and 180 BTC respectively.

I haven't done enough transactions to test this, however, so I could be wrong.
dalson
Member
**
Offline Offline

Activity: 94
Merit: 10



View Profile WWW
August 02, 2011, 02:57:01 AM
 #3

I believe getreceivedbyaccount sums incoming transactions, but getbalance sums all transactions (sent, received, mined, fees) on a given account.

For example, if an account received 200 BTC, then subsequently sent 20 BTC, the functions would return 200 BTC and 180 BTC respectively.

I haven't done enough transactions to test this, however, so I could be wrong.

^ this
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!