Skip to content

Add a function to both replace and merge RPC endpoints in Reth-sdk #16502

@ferranbt

Description

@ferranbt

Describe the feature

Using Reth-sdk, I have an object that both adds a new method to the eth API and overrides one. I tried to use the merge_configured endpoint and it fails for the overrided method. My current solution is to split the two methods in distinct RPC modules and register them separately with merge_configured and replace_configured.

It would be helpful to have a single method that either adds the new method or overrides an existent.

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-rpcRelated to the RPC implementationC-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions