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.com

Authenticate 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

string

The level of commitment for querying state. Options: finalized, confirmed, processed. Default varies by method.

string

Data encoding format. Options vary by method: base58, base64, base64+zstd, jsonParsed, json.

integer

The minimum slot at which the request can be evaluated.