             deferred.resolve(@transactions[account_name_key])
             return deferred.promise
         else
-            @wallet_api.account_transaction_history(account_name).then (result) =>
+            @wallet_account_transaction_history(account_name).then (result) =>
                 @transactions[account_name_key] = []
                 angular.forEach result, (val, key) =>
                     blktrx=val.block_num + "." + val.trx_num

              @refresh_transactions()
          response.result

    wallet_unlock: (password)->
        @rpc.request('wallet_unlock', [@timeout, password]).then (response) =>
          response.result

    refresh_transactions: (account_name) ->
        account_name_key = account_name || "*"
        @blockchain.refresh_asset_records().then () =>
            @wallet_account_transaction_history(account_name).then (result) =>
                @transactions[account_name_key] = []
                console.log result
                angular.forEach result, (val, key) =>
                    @transactions[account_name_key].push
                        block_num: val.block_num
