Added a method for obtaining a transaction by id