from Helius, QuickNode, Triton or rpc.carbium.io
A client built for Helius, QuickNode or rpc.carbium.io moves by changing the URL; every key form works: query (?api-key= or ?apiKey=), leading path segment, x-token header. One key and one bare domain, standard TLS, no region, for RPC, WebSocket and the carbon stream; only the stream adds :9443.
| plane | what you have | what to paste |
|---|---|---|
| helius | ||
| rpc | https://mainnet.helius-rpc.com/?api-key=<YOUR_KEY> | https://services.carbium.sh/?api-key=<YOUR_KEY> |
| websocket | wss://mainnet.helius-rpc.com/?api-key=<YOUR_KEY> | wss://services.carbium.sh/?api-key=<YOUR_KEY> |
| stream | https://laserstream-mainnet-<region>.helius-rpc.com | https://services.carbium.sh:9443 |
| quicknode | ||
| rpc | https://<name>.solana-mainnet.quiknode.pro/<YOUR_KEY> | https://services.carbium.sh/<YOUR_KEY> |
| websocket | wss://<name>.solana-mainnet.quiknode.pro/<YOUR_KEY> | wss://services.carbium.sh/<YOUR_KEY> |
| stream | <name>.solana-mainnet.quiknode.pro, x-token metadata | https://services.carbium.sh:9443, x-token metadata |
| rpc.carbium.io | ||
| rpc | https://rpc-service.carbium.io/?apiKey=<old key> | https://services.carbium.sh/?api-key=<YOUR_KEY> |
| websocket | wss://wss-rpc.carbium.io/?apiKey=<old key> | wss://services.carbium.sh/?api-key=<YOUR_KEY> |
| stream | grpc.carbium.io, x-token metadata | https://services.carbium.sh:9443, x-token metadata |
clients
// web3.js v1: the subscription url is DERIVED from the http one, so set itimport { Connection } from "@solana/web3.js";const conn = new Connection("https://services.carbium.sh/?api-key=<YOUR_KEY>", { commitment: "confirmed", wsEndpoint: "wss://services.carbium.sh/?api-key=<YOUR_KEY>",});await conn.getSlot();// @solana/kit: two clients, one key. path carrier shown, query works the sameimport { createSolanaRpc, createSolanaRpcSubscriptions } from "@solana/kit";const rpc = createSolanaRpc("https://services.carbium.sh/<YOUR_KEY>");const subs = createSolanaRpcSubscriptions("wss://services.carbium.sh/<YOUR_KEY>");await rpc.getSlot().send();# solana-py: header carrier, bare url. AsyncClient takes the same argumentfrom solana.rpc.api import Clientclient = Client("https://services.carbium.sh", extra_headers={"x-api-key": "<YOUR_KEY>"})client.get_slot().value// rust: no sdk needed for the rpc planelet body = serde_json::json!({"jsonrpc":"2.0","id":1,"method":"getSlot"});let out: serde_json::Value = reqwest::Client::new() .post("https://services.carbium.sh") .header("x-api-key", "<YOUR_KEY>") .json(&body).send().await?.json().await?;
carbon stream
// node: @triton-one/yellowstone-grpc. the type wants EVERY filter// field present, so send the empty ones too. connect() first; the// first request fixes the filters for the stream's lifeimport Client, { CommitmentLevel } from "@triton-one/yellowstone-grpc";const client = new Client("https://services.carbium.sh:9443", "<YOUR_KEY>", {});await client.connect();const stream = await client.subscribe({ accounts: {}, slots: { s: { filterByCommitment: true } }, transactions: {}, transactionsStatus: {}, blocks: {}, blocksMeta: {}, entry: {}, accountsDataSlice: [], commitment: CommitmentLevel.CONFIRMED,});stream.on("data", (u) => console.log(u));// rust: yellowstone-grpc-client, same proto, same credentiallet mut client = GeyserGrpcClient::build_from_shared("https://services.carbium.sh:9443")? .x_token(Some("<YOUR_KEY>"))? .tls_config(ClientTlsConfig::new().with_native_roots())? .connect().await?;let mut req = SubscribeRequest::default();req.slots.insert("s".into(), SubscribeRequestFilterSlots { filter_by_commitment: Some(true), ..Default::default() });req.commitment = Some(CommitmentLevel::Confirmed as i32);let (mut _tx, mut rx) = client.subscribe_with_request(Some(req)).await?;while let Some(update) = rx.next().await { println!("{:?}", update?); }
not served
| feature | provider | here |
|---|---|---|
| enhanced transactions REST | helius | decode getTransaction, getSignaturesForAddress or getTransactionsForAddress client side |
| metis REST | quicknode | the quote and swap JSON-RPC methods |
| swap API REST paths (api.carbium.io/api/v2/quote, /api/v1/swap) | carbium.io | the quote and swap JSON-RPC methods |
| gRPC Enhanced WebSocket (wss://grpc.carbium.io/?apiKey=, accountSubscribe and transactionSubscribe at finalized) | carbium.io | accountSubscribe: WebSocket endpoint, finalized unless you pass a commitment. transactionSubscribe is not served: use logsSubscribe with mentions, or a carbon stream transactions filter |
| requestAirdrop | helius, quicknode | mainnet only, no faucet |
| DAS proofs and compressed NFTs (getAssetProof, getAssetProofs, getAssetProofBatch, getAssetSignatures, getSignaturesForAsset) | helius, quicknode | unknown methods (-32601): do not retry |
from triton
Moving from TritonThe stock Yellowstone clients work on the carbon stream with a new endpoint and key. Your client library stays, and most Subscribe requests carry over as they are; the shapes refused here are listed below.