-
Notifications
You must be signed in to change notification settings - Fork 213
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
RPC call: the method debug_traceBlockByNumber does not exist/is not available #1147
Comments
this config seems to be a mixture of avalanchego configs + subnet-evm configs. Also it should be under See https://docs.avax.network/nodes/configure/chain-configs/chain-config-flags |
Thanks for the reply @ceyonur ! I would like to clarify something: is there more than 1 config.json file? This one, is being used when launching the node, with I can confirm that it is being read, because I am setting the RPC port to 9123 and it is taking effect. So it should not matter that it's using The URL you gave me gives a 404 - |
Yes, there is a config for avalanchego, and there are different config files for each chains. So in your case there should be 2 different configs.
but eth apis part should be in a separate config. You can create a new See this page and other related pages https://docs.avax.network/nodes/configure/avalanchego-config-flags#chain-configs |
I am happy to follow up to say that all is good and working wonderfully. There is no bug, it was just me not doing the right thing! I would like to note that I believe the source of the issue is that both configs have the same name, and they are also documented in the same page of the documentation. I would split the documentation into two different pages, to avoid confusion. @ceyonur , once again, thank you very much for helping and for your time. |
Describe the bug
Editing the config file of the chain appears to have no effect.
In this case, setting the value of
eth-apis
to includedebug-tracer
does nothing.Here is the file configs/chains/ourChainName/config.json:
Here is an example, when running:
outputs, on any node (all of them have debug-tracer on the config):
another example:
Another piece of information is:
I removed the API
internal-blockchain
from the config and restarted the node.Then I called the method
eth_getBlockByNumber
of this API:curl http :// 127 . 0 . 0 . 1:9123/ext/bc/23SUgLgnzQcai7ceCSnKcWQieQwkUsUpM8HrfSVG4Mk5tof8Tp/rpc -X POST -H "Content-Type: application/json" --data '{"method":"eth_getBlockByNumber","params":["0xc",false],"id":1,"jsonrpc":"2.0"}'
And it gave me an answer. But it was not supposed to give me an answer: it was supposed to say the method
eth_getBlockByNumber
was not availalbe because I disabled its API.So it seems that:
Additional context
The text was updated successfully, but these errors were encountered: