How to get a transaction data