Use case
Multi-chain RPC with archive reads and WebSocket RPC
153 chains on one endpoint. Standard JSON-RPC reads across 153 EVM and non-EVM chains — including archive historical state, eth_getLogs and WebSocket RPC (/ws/rpc/{chain}) — with one key.
What you get
One URL pattern, POST /rpc/{chain}, for block, balance, transaction, eth_call, eth_getLogs and archive historical reads across 153 chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Solana, Bitcoin, TON, Sui, Aptos, Tron and more), plus live WebSocket subscriptions at /ws/rpc/{chain}.
HTTP JSON-RPC request
curl -sS -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}' \
https://openapihub.dev/rpc/ethereum
WebSocket RPC subscription
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 methods only by default; historical block reads automatically route to archive-capable nodes first.
- Bounded eth_getLogs scans and filtered eth_subscribe/logsSubscribe subscriptions are supported.
- Batch JSON-RPC arrays are refused; send one call per request.
- GET /rpc/chains lists every chain, alias, family and numeric chain id.
FAQ
Are historical archive reads and eth_getLogs supported?
Yes. Requests targeting historical block numbers automatically route to archive-capable nodes first across 80+ archive-enabled chains, and bounded eth_getLogs scans are supported.
Does OpenAPI Hub support WebSocket RPC?
Yes. Connect to wss://openapihub.dev/ws/rpc/{chain} with X-Hub-Key for read-only EVM eth_subscribe (newHeads, logs, syncing) and Solana subscriptions (slotSubscribe, accountSubscribe, logsSubscribe).
See also: Full RPC reference · Ethereum RPC · Base RPC · Arbitrum RPC · Solana RPC