Bitcoin Forum
May 08, 2024, 12:26:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: getbalance and getreceivedbyaccount  (Read 2151 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"?

1715171185
Hero Member
*
Offline Offline

Posts: 1715171185

View Profile Personal Message (Offline)

Ignore
1715171185
Reply with quote  #2

1715171185
Report to moderator
1715171185
Hero Member
*
Offline Offline

Posts: 1715171185

View Profile Personal Message (Offline)

Ignore
1715171185
Reply with quote  #2

1715171185
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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!