On-chain RPC · JSON-RPC, Archive, WebSocket
Solana RPC
Solana JSON-RPC: account reads, token balances, block height, archive reads and live slot/logs WebSocket RPC.
| property | value |
|---|---|
| HTTP JSON-RPC | POST https://openapihub.dev/rpc/solana |
| WebSocket RPC | wss://openapihub.dev/ws/rpc/solana |
| Canonical / Alias | solana / solana |
| Chain ID | 501 |
| Family / Transport | solana / json-rpc |
| Archive routing | Yes (historical reads route to archive nodes first) |
| JSON-RPC batch | Read-only arrays of 1..20 calls on HTTP POST (max 2 eth_getLogs; empty/>20 refused -32600; write methods refused as a whole -32015) |
| Free key limits | 80 requests per second per key, bursts up to 160, 60 requests in flight. |
First request
curl -sS -X POST "https://openapihub.dev/rpc/solana" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getBlockHeight","params":[]}'
WebSocket RPC
Subscribe to live events on wss://openapihub.dev/ws/rpc/solana (read-only allowlisted subscriptions only):
wscat -H "X-Hub-Key: $API_HUB_KEY" -c "wss://openapihub.dev/ws/rpc/solana" \
-x '{"jsonrpc":"2.0","id":1,"method":"slotSubscribe"}'
Allowlisted read methods (27)
getAccountInfo, getBalance, getBlock, getBlockCommitment, getBlockHeight, getBlockTime, getBlocks, getEpochInfo, getEpochSchedule, getFeeForMessage, getGenesisHash, getHealth, getLatestBlockhash, getMinimumBalanceForRentExemption, getSignatureStatuses, getSignaturesForAddress, getSlot, getSlotLeader, getSupply, getTokenAccountBalance, getTokenAccountsByDelegate, getTokenAccountsByOwner, getTokenLargestAccounts, getTransaction, getTransactionCount, getVersion, isBlockhashValid
FAQ
What is the Solana RPC endpoint URL?
Send JSON-RPC 2.0 POST requests to https://openapihub.dev/rpc/solana with your key in the X-Hub-Key header.
What are the rate limits for Solana RPC?
Every free key includes 80 requests per second sustained, bursts up to 160, and 60 concurrent in-flight requests.
Does Solana support archive reads or WebSocket RPC?
Solana supports historical archive routing and live WebSocket RPC at wss://openapihub.dev/ws/rpc/solana.
More networks: Ethereum · Base · Arbitrum One · Optimism · Polygon PoS · BNB Smart Chain (BSC) · Avalanche C-Chain · HyperEVM (Hyperliquid) · Linea · zkSync Era · TON · Bitcoin · Sui · Celestia (Cosmos SDK) · Aptos · TRON · Scroll · NEAR · Gnosis Chain · All 153 chains