calculating the balances. need to add a new 'funds' element to txin