RPC Overview
cubestech supports the full Solana JSON-RPC API. All methods use the standard JSON-RPC 2.0 protocol over HTTPS.
Endpoint
text
POST https://api.mainnet-beta.solana.comAuthenticate with the x-api-key header on every request:
bash
curl https://api.mainnet-beta.solana.com \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'Common Parameters
stringThe level of commitment for querying state. Options: finalized, confirmed, processed. Default varies by method.
stringData encoding format. Options vary by method: base58, base64, base64+zstd, jsonParsed, json.
integerThe minimum slot at which the request can be evaluated.