Added getTransaction method