Open Source Initiative

Solana RPC
Gateway Refinery

Reliable RPC infrastructure is oxygen. rpc.ag is the open-source refinery: a high-performance gateway built on Rust, backed by Postgres, and analyzed through Clickhouse.

Multi-provider aggregation
Intelligent load balancing
Deep packet analytics

RPC Gateway Logic Engine

This interactive panel models method-based routing and failover behavior across providers. Use it to inspect request strategy, winning route, and latency behavior under changing traffic profiles.

Configuration

Requests are distributed sequentially (A -> B -> C). Good for cost saving.

Live Stats

0
Total Req
0ms
Avg Latency
100%
Success
Architecture Visualization
👤
Client
RPC Gateway
Provider A
Helius
Provider B
Triton
Provider C
QuickNode
// System Ready. RPC Gateway initialized.
// Connected to Postgres DB.
// Clickhouse Analytics stream active.

Deep Observability

Gateway exposes full request traces and latency behavior so operators can root-cause issues quickly under production load.

  • +Full Request Logging: Capture bodies, headers, and responses.
  • +Security Fingerprinting: Log IP addresses and TLS fingerprints to block abuse.
  • +Performance Metrics: Breakdown latency by provider, method, and region.

Why Clickhouse?

Postgres is ideal for account state and configuration. Clickhouse handles millions of RPC log events for real-time analytics.

Global Request Latency (ms)

Architecture Stack

Rust Server

Handles incoming traffic, TLS termination, and strategy execution with predictable low-level performance.

  • Memory safe and fast
  • Async Tokio runtime
  • Custom load balancing logic
🐘

PostgreSQL

Source of truth for users, API keys, and routing configuration.

  • Relational data integrity
  • User accounts and projects
  • Provider configuration state
📊

Clickhouse

High-cardinality analytics on production traffic for debugging and optimization.

  • Columnar storage
  • Massive log ingest
  • Fast aggregate queries

Developer Experience First

Infrastructure is only useful when operators can reason about it quickly.

1

Integrated Playground

Build, save, and share RPC requests. Export to cURL or TypeScript without boilerplate.

2

Devnet Support

Run safe experiments with full support for devnet clusters and failure simulations.

playground.ts
const
connection = new Connection("https://rpc.ag");

// Smart Routing handles the rest
await connection.getAccountInfo(publicKey);

// Transactions broadcast on parallel strategy
await connection.sendTransaction(tx);

Success: 200 OK
Latency: 45ms
Provider: Helius (Fastest)