Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for searching via EVM tx hash #482

Closed
mgarbs opened this issue Mar 5, 2023 · 2 comments · Fixed by #675
Closed

Support for searching via EVM tx hash #482

mgarbs opened this issue Mar 5, 2023 · 2 comments · Fixed by #675
Labels
enhancement New feature or request P1 An issue impacting production environments or impacting multiple releases or multiple individuals smart contracts Features that involve smart contracts
Milestone

Comments

@mgarbs
Copy link

mgarbs commented Mar 5, 2023

Problem

Currently, you cannot search by tx hash
image

But you can find it if you construct the URL as such:
{network}/tx/0x3daf41735d1ca3d7eef4116a92cb5548a3510afab5c1d65d0f6cd19fa9ef2115
image

Solution

  • add support to search by that tx hash

Alternatives

No response

@mgarbs mgarbs added the enhancement New feature or request label Mar 5, 2023
@Nana-EC
Copy link

Nana-EC commented May 18, 2023

I'd like to propose an update to this ticket.

Hash searching capability is limited due to the scaling implications on the mirror node.
In the mean time it is possible to utilize a few API's to get to the Hedera transaction that maps to the EVM hash provided.

The mirror node explorer should add the following logic for EVM hashes, this will not be for HAPI hashes

  1. Check the hash length. If it's of the matching EVM hash length and structure then call mirror node /api/v1/contracts/results/{hash}
  2. If a 200 response is returned then extract the timestamp and call /api/v1/transactions?timestamp={timestamp}
  3. If a 200 response is returned then extract the transactionId
  4. Use the transactionId in the normal transaction details retrieval process.

If any step fails then display the normal transaction not found.

@SimiHunjan SimiHunjan added this to the July 2023 milestone Jun 13, 2023
@SimiHunjan SimiHunjan added P1 An issue impacting production environments or impacting multiple releases or multiple individuals smart contracts Features that involve smart contracts labels Jul 25, 2023
@SimiHunjan
Copy link
Collaborator

There is Hedera transction hash and an evm transaction hash. This issue references to search by EVM transaction hash.

@SimiHunjan SimiHunjan changed the title Support for searching via tx hash Support for searching via EVM tx hash Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1 An issue impacting production environments or impacting multiple releases or multiple individuals smart contracts Features that involve smart contracts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants