Use case
Real-time crypto WebSockets and WebSocket RPC
Stream live DEX pairs, perpetual order books, options, prediction markets and blockchain eth_subscribe / Solana subscriptions through one API key.
What you get
Two real-time WebSocket surfaces share the same X-Hub-Key authentication: 70+ multiplexed provider feeds under /ws/{provider}/{path} and read-only JSON-RPC WebSocket subscriptions under /ws/rpc/{chain}.
Provider WebSocket streams
- Perpetuals & options: Hyperliquid (9 WS), Deribit (12 WS), dYdX v4 (6 WS).
- DEX & market data: OKX Web3 (10 WS), DexTools (7 WS), CoinMarketCap (5 WS), Dexscreener (3 WS), TradingView (1 WS).
- Prediction markets: Manifold (6 WS), Limitless (4 WS), Myriad (4 WS), Polymarket (1 WS).
- Block explorers & SSE: OKLink (2 WS), X profile events (1 SSE), Arkham tx analysis (1 SSE), plus 15 poll-bridge SSE routes.
WebSocket RPC (/ws/rpc/{chain})
Subscribe to live EVM blocks and filtered contract logs (eth_subscribe: newHeads, logs, syncing) or Solana slots, accounts and logs (slotSubscribe, rootSubscribe, accountSubscribe, signatureSubscribe, logsSubscribe).
wscat -H "X-Hub-Key: $API_HUB_KEY" -c "wss://openapihub.dev/ws/rpc/ethereum" \
-x '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}'
Good to know
- Read-only: provider WebSockets never forward client writes; WS RPC refuses broadcast and unbounded firehose subscriptions.
- One shared upstream connection fans out to subscribers with bounded per-client queues.
FAQ
How do I authenticate WebSocket connections?
Pass your key in the X-Hub-Key HTTP header during the WebSocket handshake to /ws/{provider}/{path} or /ws/rpc/{chain}.
Which chains support WebSocket RPC subscriptions?
Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Solana, Linea and zkSync support live JSON-RPC WebSocket subscriptions at /ws/rpc/{chain}.
See also: Streaming reference · On-chain RPC · Hyperliquid · Deribit · DexTools