correctly locating transaction by hash and outputing as json