erpc

Route Ethereum JSON-RPC requests with finality-aware caching and automatic upstream failover.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/MysticRyuujin/spirens --skill erpc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erpc
Source: https://github.com/MysticRyuujin/spirens/tree/main/erpc
Command: npx skills add https://github.com/MysticRyuujin/spirens --skill erpc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

eRPC solves the reliability and performance challenges of Ethereum JSON-RPC by providing finality-aware caching, deterministic routing, and automatic upstream failover to maintain SLA.

Core Features & Use Cases

  • Finality-aware caching policies that avoid caching recent blocks and stale responses.
  • Per-chain routing and hedging to reduce tail latency and improve availability.
  • Use case: Use in multi-environment deployments where multiple upstreams (vendors/local nodes) are available with automatic failover.

Quick Start

Configure and run eRPC to serve Ethereum JSON-RPC through a finality-aware cache with automatic failover across multiple upstreams.

Frequently Asked Questions about erpc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve Ethereum JSON-RPC reliability and reduce tail latency?

To improve Ethereum JSON-RPC reliability, you can use finality-aware caching and per-chain routing to provide deterministic responses and automatic upstream failover. This approach reduces tail latency through hedging requests across multiple available upstreams.

What is finality-aware caching for JSON-RPC and why is it needed?

Finality-aware caching for JSON-RPC is a mechanism that avoids caching recent blocks and stale responses. It is needed to prevent serving non-finalized blockchain data, ensuring that clients receive deterministic and accurate state information without compromising data integrity.

How do I configure automatic failover for multiple Ethereum JSON-RPC upstreams?

You configure automatic failover by setting up per-chain routing rules that connect multiple upstreams, such as vendors and local nodes. The system monitors upstream availability and automatically redirects traffic to healthy nodes to maintain your service level agreement.

Can I use JSON-RPC caching in a multi-chain environment with different finality policies?

Yes, you can use JSON-RPC caching in a multi-chain environment by implementing per-chain finality policies. This allows the caching layer to respect the specific finality rules and retry rules of each individual blockchain network while maintaining robust failover.

What is the best way to handle stale responses when caching Ethereum JSON-RPC data?

The best way to handle stale responses when caching Ethereum JSON-RPC data is to apply finality-aware caching policies. These policies ensure that only finalized block data is cached, automatically bypassing the cache for recent blocks to avoid serving outdated information.

Does JSON-RPC hedging actually improve availability for multi-upstream deployments?

Yes, JSON-RPC hedging improves availability for multi-upstream deployments by sending concurrent requests to multiple upstreams. It uses the first valid response received, which significantly reduces tail latency and mitigates the impact of a single slow or failing node.