refactored transaction balance method
Merge branch 'transaction_balance_refactor'

* transaction_balance_refactor:
  refactored transaction balance method