Author

Topic: getbalance and getreceivedbyaccount (Read 2155 times)

member
Activity: 94
Merit: 10
August 01, 2011, 10:57:01 PM
#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
newbie
Activity: 35
Merit: 0
August 01, 2011, 07: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.
full member
Activity: 191
Merit: 100
July 30, 2011, 12:18:49 PM
#1
What is the difference between RPC command "getbalance account" and "getreceivedbyaccount account"?
Jump to: