Migrating from Helius
OpenInfra.sh is a drop-in replacement for Helius RPC — same JSON-RPC 2.0 spec, no SDK changes required.
What stays the same
- All standard Solana JSON-RPC methods — identical request and response shapes.
- WebSocket subscriptions — same method names and notification formats.
- The @solana/web3.js Connection class — no SDK change needed.
What changes
- No per-request credits — dedicated capacity is unlimited, no credit system.
- No proprietary Helius-specific methods (
getAsset,getAssetsByOwner, etc.) — use the standard RPC methods or the Metaplex SDK directly. - Yellowstone gRPC replaces Helius Webhooks for real-time data push — lower latency and richer filtering.
Update environment variables
Before:
HELIUS_API_KEY=your_keyHELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=your_keyAfter:
OPENINFRA_API_KEY=oi_live_xxxxxxxxxxxxRPC_URL=https://rpc.openinfra.sh?api-key=oi_live_xxxxxxxxxxxxUpdate your connection string
-const conn = new Connection(process.env.HELIUS_RPC_URL!);+const conn = new Connection(process.env.RPC_URL!);No other code changes are needed for standard RPC usage.
Replace webhooks with gRPC (optional)
If you used Helius webhooks for real-time account or transaction monitoring, replace them with a Yellowstone gRPC subscription — it delivers data faster and with server-side filtering.
See the Yellowstone gRPC guide to get started.