Fixed the min hash rest endpoints to use proper error handling and to also fix an issue that was creating thousands of transactions when it shouldn't have.