create print method to get method of transaction