ithacaxyz / op-rs

Apache License 2.0
58 stars 6 forks source link

feat(providers): Perform Endpoint Validation #43

Open refcell opened 3 months ago

refcell commented 3 months ago

Description

[!NOTE]

Background context: https://github.com/paradigmxyz/op-rs/pull/37#discussion_r1731762362

There's no way of currently knowing if providers using external RPCs support the various rpc methods. Since some nodes gate certain methods to control traffic, it would be useful to validate external rpc urls to ensure those methods are available.

One way to perform this validation is by defining a Validator trait that external providers need to implement - and can be implemented locally through a wrapper type.

Current Kona Methods

L1 Provider

L2 Provider

Validation

merklefruit commented 3 months ago

blocked by #35, this sounds like it would work as a part of the RPC crate