Implemented getTransactions method.