Implemented q promises for getTransactions.