add utility method to get output value of transaction