Bitcoin Forum
April 26, 2017, 06:20:11 AM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: getbalance and getreceivedbyaccount  (Read 1983 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"?

1493187611
Hero Member
*
Offline Offline

Posts: 1493187611

View Profile Personal Message (Offline)

Ignore
1493187611
Reply with quote  #2

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

Posts: 1493187611

View Profile Personal Message (Offline)

Ignore
1493187611
Reply with quote  #2

1493187611
Report to moderator
1493187611
Hero Member
*
Offline Offline

Posts: 1493187611

View Profile Personal Message (Offline)

Ignore
1493187611
Reply with quote  #2

1493187611
Report to moderator
1493187611
Hero Member
*
Offline Offline

Posts: 1493187611

View Profile Personal Message (Offline)

Ignore
1493187611
Reply with quote  #2

1493187611
Report to moderator
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!