Appearance
Solana coming soon
Solana HTTPS JSON-RPC is on the roadmap; the /solana gateway path is reserved. The WebSocket pubsub endpoint is already wired (below).
What to expect
| Endpoint | https://rpc.au.ro/solana (reserved) |
| Protocol | Solana JSON-RPC 2.0 (getSlot, getBalance, sendTransaction, …) |
| WebSocket | wss://rpc.au.ro/ws/solana?apikey=<YOUR_API_KEY> (pubsub) |
| SDK | @solana/web3.js Connection with an httpHeaders: { apikey } option |
js
// the integration that will work on launch:
import { Connection } from '@solana/web3.js'
const connection = new Connection('https://rpc.au.ro/solana', {
httpHeaders: { apikey: process.env.YOUR_API_KEY }
})
// (final snippet will be published — and live-verified — at launch)Want it sooner? Tell us — chain priority follows demand.
WebSocket subscriptions
The pubsub API streams over wss://rpc.au.ro/ws/solana — key in ?apikey= (browsers) or the apikey header:
bash
npx wscat -c "wss://rpc.au.ro/ws/solana?apikey=$YOUR_API_KEY"
> {"jsonrpc":"2.0","id":1,"method":"slotSubscribe"}
< {"jsonrpc":"2.0","result":1,"id":1}
< {"jsonrpc":"2.0","method":"slotNotification","params":{"result":{"slot":371980277,...},"subscription":1}}accountSubscribe, logsSubscribe and signatureSubscribe follow the standard Solana pubsub API; @solana/web3.js takes the WS URL as Connection's wsEndpoint option. Reconnect guidance: WebSockets.