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, 2020 at 7:23
  • Facing the same problem,I want the solution too!
    – cody588
    Mar 1, 2021 at 13:58

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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