alchemyplatform / rundler

An ERC-4337 Bundler in Rust
GNU Lesser General Public License v3.0
268 stars 39 forks source link

[rpc] Evaluate error logging, return more context to users in internal errors #794

Open dancoombs opened 2 weeks ago

dancoombs commented 2 weeks ago

Describe the feature Example: if an RPC call fails during gas estimation the user may see "failed to run initial guess", but they wouldn't see that the underlying RPC call failed, causing this error.

Evaluate where it makes sense and how to return more context for RPC errors.

CAUTION: we need to be careful not to return too much information, leaking internal configuration to users (RPC URLs w/ API keys for example),