Modified Transaction Factory code to fetch a single transaction