public Map getSentBoxData(String account) { HashMap data = new HashMap(); btcClient = (BitcoinClient) btcClientMap.get(serverID); List listOfTransactions = btcClient.listTransactions(account); System.out.println(" listOfTransactions.size(): " + listOfTransactions.size()); for (int i = 0; i < listOfTransactions.size(); i++) { TransactionInfo trnInfo = (TransactionInfo) listOfTransactions.get(i); /*System.out.println(" ------------------------------------ " + trnInfo); System.out.println("confirm:" + trnInfo.getConfirmations()); System.out.println("amout:" + trnInfo.getAmount()); System.out.println("Address:" + trnInfo.getAddress()); System.out.println("mess:" + trnInfo.getMessage()); System.out.println("cat:" + trnInfo.getCategory()); System.out.println("other acct:" + trnInfo.getOtherAccount()); System.out.println("fees:" + trnInfo.getFee()); System.out.println("ID:" + trnInfo.getTxId()); System.out.println("Date:" + trnInfo.getTimestamp()); System.out.println("Formatted Date:" + new Date(trnInfo.getTimestamp() * 1000));*/ if ("send".equalsIgnoreCase(trnInfo.getCategory())) { String[] row = new String[6]; row[0] = String.valueOf(trnInfo.getConfirmations() + " Confirmations"); row[1] = String.valueOf(new Date(trnInfo.getTimestamp() * 1000)); row[2] = String.valueOf(trnInfo.getAmount() * -1); row[3] = String.valueOf(trnInfo.getAddress()); row[4] = trnInfo.getMessage() == null ? "" : trnInfo.getMessage(); row[5] = String.valueOf(trnInfo.getTxId()); data.put(row[5], row); } } return data; }