Author

Topic: getbalance and getreceivedbyaccount (Read 2160 times)

member
Activity: 94
Merit: 10
August 01, 2011, 09: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, 06: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, 11:18:49 AM
#1
What is the difference between RPC command "getbalance account" and "getreceivedbyaccount account"?
Jump to: