1

I would like to know if is possible to get transaction without the block number, or how to get the block number corresponds to the transaction ID.

Error 3040011: The transaction can not be found Error Details: Transaction b8a6c7e69ca14855ad75fc7af34dc92747a69775305c15e7d1ce243776b5f571 not found in history and no block hint was given

2
  • I'm facing the same problem, did you find any solution ? – AditiB Aug 10 '20 at 7:23
  • Facing the same problem,I want the solution too! – cody588 Mar 1 at 13:58
1

All transactions are stored in blocks.log file, but it doesn't have index for searching for the specific transaction by id. It costs too much to scan all blocks from genesis to head block to get transaction, so it is not supported to get transaction without block number. To get transaction by its id, you need history solutions to add index information.

  • history_plugin (deprecated)
  • mongo_db_plugin (deprecated)
  • state_history_plugin

state_history_plugin builds historical raw data, but you need high-level tools to handle it. Refer to hyperion, history-tools or dfuse.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.