Bitcoin Forum
December 04, 2016, 06:22:36 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: getbalance and getreceivedbyaccount  (Read 1938 times)
codler
Full Member
***
Offline Offline

Activity: 191



View Profile
July 30, 2011, 04:18:49 PM
 #1

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

1480832556
Hero Member
*
Offline Offline

Posts: 1480832556

View Profile Personal Message (Offline)

Ignore
1480832556
Reply with quote  #2

1480832556
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
remmy
Jr. Member
*
Offline Offline

Activity: 35


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



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!