Open
Conversation
26bcf7f to
60e0253
Compare
s1na
reviewed
Sep 10, 2024
|
Actually it seems to panic in some cases: |
ad2625e to
da224ed
Compare
Author
I reproduced the error and got the transaction hash that caused the issue: lee@linux01:~$ curl -X POST -H "Content-Type: application/json" --data '{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0x518c932989883b0bf9dabb9e904397d5f3d6561ef776ceb5dd8a1de5533212cb",
{ "tracer": "callTracer" }
],
"id": 1
}' https://rpc.ankr.com/xdc | jqResponse: {
"id": "1",
"jsonrpc": "2.0",
"error": {
"code": -32053,
"message": "API key is not allowed to access method"
}
}And in another RPC node: lee@linux01:~$ curl -X POST -H "Content-Type: application/json" --data '{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0x518c932989883b0bf9dabb9e904397d5f3d6561ef776ceb5dd8a1de5533212cb",
{ "tracer": "callTracer" }
],
"id": 1
}' https://earpc.xinfin.network/ | jqResponse: {
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "execution timeout"
}
}It seems to be an issue with the node. I haven’t encountered this problem on the private network, so I’ve added code to handle this situation. The code will retry sending the request, record the failed transaction hashes, and skip querying those hashes. If you can provide more information about the node, I can work on finding a complete solution to this issue. |
da224ed to
9cdbf0b
Compare
5c8bf24 to
d988667
Compare
0a5e34e to
549be6e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
opCodeFinder.jsis a Node.js script designed to search for Ethereum contract addresses that contain specific opcodes within a specified block range. The script scans the blockchain for contracts that match the criteria and outputs the resulting contract addresses to a.txtfile.Requirements
Before you can use
opCodeFinder.js, ensure that you have the following environment set up:web3jspackage to interact with the Ethereum blockchain. You can install it using npm:Usage
To run the
opCodeFinder.jsscript, use the following command:Example
To search for contracts that include the
PREVRANDAOopcode on the mainnet, execute the script in your terminal. In this example,72290000is a block before the PREVRANDAO opcode was introduced.node src\opCodeFinder.js 72290000 latest PREVRANDAO https://rpc.ankr.com/xdcParameters
latestfor the most recent block.