 
   # Get raw transaction
   el.find('.show-rawtx').click ->
-    try show_rawtx_dialog build_tx unspent, el
+    try show_rawtx_dialog build_tx()
     catch e then display_error e
 
   # Auto-update the change amount

sum_value_inputs = ($els) ->
  sum_inputs $els
    .filter(->!!@value)
    .map(-> +parseValue @value).get()

module.exports = tx_builder

      unspent = _unspent
      balance = sum_inputs unspent
      $('.balance').text (formatValue balance)+' BTC'
      do update_change
  do update_balance
  
  cb_success = cb.bind null, null
