Skip to content

Conversation

mubarakone
Copy link

@mintdart
Copy link
Contributor

transaction hash should be different for each chain right ? i see tx not found error
Screenshot

@mubarakone
Copy link
Author

Yeah looks like each chain will need its own transaction hash, which I am still deciding how to go about it. Hardcoding every hash doesn't seem feasible

- tx not found means debug_traceTransaction method is found, which is good
@mubarakone
Copy link
Author

Okay... turns out that transaction not found means that debug_traceTransaction is detected in the RPC, and is looking for the transaction based on the params. All we need is to indicate the debug_traceTransaction method exists, so the params is a dummy address. If we get in the error msg something like "method does not exist" or "API has no access", then we know for sure debug_traceTransaction does not exist and therefore no trace support for that RPC.

@mubarakone
Copy link
Author

The burn address is used to test for archive support, since it exists in every EVM chain.

@mintdart
Copy link
Contributor

debug_transaction expects two arguments
Screenshot

@mubarakone
Copy link
Author

thats okay because if debug_traceTransaction is recognized, that means trace support exist. I left the second argument blank because even if I did add a dummy variable, an error will still occur because the transaction never existed. But we aren't trying to look for a specific transaction, we are just trying to find if debug_traceTransaction method exists (which means trace support exists)

@mintdart
Copy link
Contributor

mintdart commented Aug 25, 2025

there are archive nodes that do not support traces

@mubarakone
Copy link
Author

yes those are requested separately

@mintdart mintdart requested review from 0xngmi and mintdart August 26, 2025 08:15
mintdart
mintdart previously approved these changes Aug 26, 2025
@0xngmi
Copy link
Member

0xngmi commented Sep 16, 2025

ACK on idea, if @Caranell's review is positive lets merge it

@Caranell
Copy link
Member

Caranell commented Sep 16, 2025

Made some fixes:

  1. using same queryKey for both trace & archive queries caused the latter not to trigger at all & only the trace data being used for both metrics
  2. added more checks to trace debugging to filter out false positives/negatives (a bit debatable, feel free to comment)

@Caranell Caranell requested a review from mintdart September 16, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants