Add a method to fetch a transaction based on txid