Added function to extract a dictionary with useful information from a transaction.