Solana RPC
Solana JSON-RPC 2.0 over the authenticated OpenInfra gateway. Method request and response shapes follow the standard Solana interface.
Endpoint and authentication
Send HTTPS requests to https://rpc.sol.openinfra.sh with your dashboard key in x-api-key. The verified api-key query parameter is available for clients that cannot set headers.
curl https://rpc.sol.openinfra.sh \ -H "content-type: application/json" \ -H "x-api-key: $OPENINFRA_API_KEY" \ -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'Request format
{ "jsonrpc": "2.0", "id": 1, "method": "<method>", "params": [ /* positional parameters */ { "commitment": "confirmed" } /* optional config object */ ]}Response format
{ "jsonrpc": "2.0", "id": 1, "result": { /* method-specific result */ }} /* Error case */{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "Invalid params" }}Error codes follow the JSON-RPC 2.0 spec. Solana-specific codes are in the range -32000 to -32099.
Commitment levels
processed— slot received, not yet confirmed. Lowest latency.confirmed— majority of validators voted on this slot.finalized— slot is rooted and will not be rolled back.
Default commitment is finalized unless overridden in the config object.
Common methods
| Method | Description |
|---|---|
| getSlot | Current slot number |
| getBalance | Lamport balance for an address |
| getAccountInfo | Full account data (owner, data, lamports, rent epoch) |
| getMultipleAccounts | Batch account info in a single call |
| getTransaction | Transaction by signature (with metadata) |
| sendTransaction | Submit a signed, serialised transaction |
| simulateTransaction | Dry-run a transaction without committing |
| getLatestBlockhash | Current blockhash + last-valid block height |
| getSignatureStatuses | Confirmation status for one or more signatures |
| getProgramAccounts | All accounts owned by a program (with filters) |
| getTokenAccountsByOwner | SPL token accounts for a wallet |