SAGE Gateway Software

SAGE (Supplier-Aware Gateway Engine) is an open-source Go gateway for Pocket Network Shannon. A client sends an ordinary RPC request (an eth_blockNumber, a CometBFT /status, a Solana call); SAGE picks a healthy supplier endpoint, signs and sends the relay, grades the response, and feeds the result back into reputation so the next request routes better.

SAGE is the successor to PATH and the gateway PNF runs on mainnet. It loads a PATH config unmodified, and it tells you at startup about every PATH key it does not act on. See Migrating from PATH.

Who SAGE Is For

  • Gateway operators running RPC access on Pocket, for themselves or for customers
  • Chain foundations running a dedicated endpoint for their ecosystem
  • Developers who need their own access point rather than a public endpoint
  • Core developers extending routing, QoS or response analysis

How It Works

Every relay passes through a chain of small middleware, each with one concern. The order comes from config, and startup refuses an order that breaks a rule such as “endpoint selection runs inside retry”:

plaintext
Client request
  → parse (service, RPC type, QoS plugin)
    → cache / batch / coalescing
      → retry → hedge
        → circuit breaker → endpoint selection
          → sign and send the relay → grade the response
Client response ←──────────────────────────────┘

Each response gets a verdict and an attribution: supplier, blockchain, client or unknown. A chain’s own answer, such as a reverted call or a missing block, is delivered to the client and does not count against the supplier that relayed it.

QoS Plugins

PluginChainsWhat it adds
EVMEthereum, Base, Arbitrum, Polygon, BSC, …Block height tracking, archival routing, JSON-RPC and WebSocket
CosmosPocket, Osmosis, Celestia, sei, …REST, CometBFT and JSON-RPC, including a chain’s EVM face
SolanaSolanaSlot tracking, JSON-RPC
TRONTRONBoth TRON request framings
JSON-heightNEAR, Sui, and similarHeight tracking from a declaration: what to ask, and where the answer is
PassthroughAny other serviceRelays and scores, without understanding the payload

Transports

JSON-RPC, REST, CometBFT (by path or by JSON-RPC method), WebSocket with subscriptions, and gRPC (native, with a gRPC-Web fallback).

Warning

SAGE authenticates no clients and rate-limits nothing. Every relay it accepts is signed with your gateway key and paid for by your staked applications. Put port 3069 behind an authenticating, rate-limiting proxy; never expose it to the internet directly.

What’s in This Section

  • Quickstart — run SAGE and serve a relay
  • Installation — release binaries, container image, building from source
  • Configuration — what a config needs, and where the full key reference lives
  • Architecture — the middleware chain, QoS, response grading, reputation, WebSocket
  • Operating — ports, Kubernetes probes, Redis, metrics, the admin API
  • Migrating from PATH — what carries over unchanged, and what differs
  • Developing — adding a middleware or a chain

In this section