Skip to content

Standardize JSON-RPC Error codes #658

Open
@simsonraj

Description

@simsonraj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions