Skip to content

Standardize JSON-RPC Error codes #658

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

Open
simsonraj opened this issue May 21, 2025 · 0 comments
Open

Standardize JSON-RPC Error codes #658

simsonraj opened this issue May 21, 2025 · 0 comments

Comments

@simsonraj
Copy link

simsonraj commented May 21, 2025

Goal:
A standard for JSON-RPC error codes and messages across EVM-compatible chains and execution clients to improve interoperability, facilitate consistent error handling, and provide a better developer experience.

Motivation:

  • Different Ethereum clients and EVM-compatible chains often use overlapping error codes or generic messages in their JSON-RPC API responses.
  • We can fix that by classifying error groups & pre-allocating error codes to well-known errors that clients rely on and leave space for the future error codes that can be proposed & utilized as needed
  • The solution is made possible by the new extension specs that Open-RPC supports to create error-groups

Proposal:

ENG-EIP_ Standardized JSON-RPC Error Codes and Messages-220525-143559.pdf

PoC:
#650

rpctestgen Validation PoC:
lightclient/rpctestgen#42

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

1 participant