Welcome to Sol RPC Router
Sol RPC Router is a production-ready reverse proxy designed specifically for Solana infrastructure. Built with Rust for maximum performance, it provides enterprise-grade API key authentication, per-key rate limiting, weighted load balancing, and automatic health monitoring for your Solana RPC endpoints.Quick Start
Get up and running in 5 minutes with our quick start guide
Installation
Detailed installation instructions and prerequisites
Configuration
Configure backends, health checks, and routing rules
API Reference
Complete API documentation and endpoint reference
Key Features
API Key Authentication
Query parameter
?api-key= validated against Redis with local caching (60s TTL) for optimal performancePer-Key Rate Limiting
Atomic RPS limits enforced in Redis using INCR + EXPIRE Lua scripts
Weighted Load Balancing
Distribute requests across backends by configurable weight. Unhealthy backends are automatically excluded
Method-Based Routing
Pin specific RPC methods (e.g.
getSlot) to designated backends for optimal performanceWebSocket Proxying
Full WebSocket support with the same auth, rate limiting, and load balancing as HTTP requests
Health Monitoring
Background health checks with configurable thresholds control automatic backend failover
Prometheus Metrics
Comprehensive metrics for request counts, latencies, and backend health via
/metrics endpointAdmin CLI
Full-featured
rpc-admin tool for creating, managing, and revoking API keysArchitecture Overview
Sol RPC Router acts as a smart gateway between your clients and Solana RPC providers:Production Ready: Sol RPC Router is built with production workloads in mind, featuring atomic rate limiting, zero-downtime configuration reloads (SIGHUP), and comprehensive error handling.
Use Cases
Multi-Provider Failover
Multi-Provider Failover
Automatically route traffic across multiple Solana RPC providers with weighted distribution. When a provider goes down, traffic is seamlessly redirected to healthy backends.
API Key Management
API Key Management
Provide API keys to customers with individual rate limits. Track usage per key and revoke access instantly through the admin CLI.
Cost Optimization
Cost Optimization
Route expensive methods like
getProgramAccounts to specific providers while using cheaper endpoints for simple queries like getSlot.Rate Limiting
Rate Limiting
Protect your infrastructure from abuse with Redis-backed atomic rate limiting. Set different limits per customer or API key.
Next Steps
Quick Start
Follow the Quick Start guide to get Sol RPC Router running in minutes.
Configure Backends
Set up your Solana RPC backends and configure routing rules in the Configuration guide.