Bitcoin Forum
May 12, 2024, 11:04:20 AM *
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"?

"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715511860
Hero Member
*
Offline Offline

Posts: 1715511860

View Profile Personal Message (Offline)

Ignore
1715511860
Reply with quote  #2

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