Implemented method to retrieve idx based on tx hash