Title: getbalance and getreceivedbyaccount Post by: codler on July 30, 2011, 04:18:49 PM What is the difference between RPC command "getbalance account" and "getreceivedbyaccount account"?
Title: Re: getbalance and getreceivedbyaccount Post by: remmy on August 01, 2011, 11:59:42 PM 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. Title: Re: getbalance and getreceivedbyaccount Post by: dalson on August 02, 2011, 02:57:01 AM 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 |