Skip to content

feat: implement timeout and circuit breaker for external RPC calls#790

Open
menawar wants to merge 1 commit into
Smartdevs17:mainfrom
menawar:issue-713-rpc-resilience
Open

feat: implement timeout and circuit breaker for external RPC calls#790
menawar wants to merge 1 commit into
Smartdevs17:mainfrom
menawar:issue-713-rpc-resilience

Conversation

@menawar

@menawar menawar commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Resolves #713

What's Changed

  • MonitoringJsonRpcProvider: Created a custom ethers.js provider that intercepts RPC calls to add timeouts, tracking, and circuit breaker logic.
  • Circuit Breaker Primitives: Implemented a CircuitBreaker and executeWithTimeout wrapper in backend/services/shared/rpcResilience.ts.
  • Fallback RPC Support: Updated src/config/evm.ts to support arrays of fallback RPC URLs per chain. The provider automatically fails over upon timeout or circuit trip.
  • RPC Health Dashboard: Created RpcHealthDashboard.tsx to visually monitor RPC latency, error counts, and circuit states in the developer portal.
  • Metrics Tracking: Added rpcMetrics.ts to aggregate all health data across the application.

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@menawar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Successfully merging this pull request may close these issues.

Add timeout and circuit breaker for external blockchain RPC calls

1 participant