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

Execution API vs Ethereum JSON-RCP API #525

Open
rubenrdpuma opened this issue Mar 9, 2024 · 3 comments
Open

Execution API vs Ethereum JSON-RCP API #525

rubenrdpuma opened this issue Mar 9, 2024 · 3 comments

Comments

@rubenrdpuma
Copy link

rubenrdpuma commented Mar 9, 2024

It's been some time since I don't use JSON-RPC in Ethereum and just found this Execution API (and the Beacon API).

I tried the new methods present in this API (i.e., debug_* and engine_* ) against a geth and Infura and they are not recognized. However, they recognize the classical ones I was used to (i.e., web3_* , net_* , ...). Also, I found out these methods are still referenced at Ethereum

So, can anyone explain me what is the purpose of this Execution API? Will it replace the existing API in the future?

Thanks

@rubenrdpuma rubenrdpuma changed the title Execution API vs JSON-RCP API Execution API vs Ethereum JSON-RCP API Mar 9, 2024
@shanejonas
Copy link
Contributor

you need to enable those apis since debug and engine are not exposed via JSON-RPC by default:

geth --http --http.api eth,net,web3,debug,engine

source: https://geth.ethereum.org/docs/interacting-with-geth/rpc

@rubenrdpuma
Copy link
Author

Thank you for the reply but I am still a bit confused by the fact that at the end of the source you point out it claims: "The Engine API is enabled by default - the user is not required to pass any instruction to Geth to enable these methods." So, maybe the endpoints I tried could have disabled engine and not enabled debug?

@shanejonas
Copy link
Contributor

engine is only for talking from a beacon node like teku and an execution node like geth, most JSON-RPC apis will not enable this publicly.

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

No branches or pull requests

2 participants