services
18

Migrating

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.

migrate/url.swap
planewhat you havewhat to paste
helius
rpchttps://mainnet.helius-rpc.com/?api-key=<YOUR_KEY>https://services.carbium.sh/?api-key=<YOUR_KEY>
websocketwss://mainnet.helius-rpc.com/?api-key=<YOUR_KEY>wss://services.carbium.sh/?api-key=<YOUR_KEY>
streamhttps://laserstream-mainnet-<region>.helius-rpc.comhttps://services.carbium.sh:9443
quicknode
rpchttps://<name>.solana-mainnet.quiknode.pro/<YOUR_KEY>https://services.carbium.sh/<YOUR_KEY>
websocketwss://<name>.solana-mainnet.quiknode.pro/<YOUR_KEY>wss://services.carbium.sh/<YOUR_KEY>
stream<name>.solana-mainnet.quiknode.pro, x-token metadatahttps://services.carbium.sh:9443, x-token metadata
rpc.carbium.io
rpchttps://rpc-service.carbium.io/?apiKey=<old key>https://services.carbium.sh/?api-key=<YOUR_KEY>
websocketwss://wss-rpc.carbium.io/?apiKey=<old key>wss://services.carbium.sh/?api-key=<YOUR_KEY>
streamgrpc.carbium.io, x-token metadatahttps://services.carbium.sh:9443, x-token metadata
!A key from rpc.carbium.io does not work here. Sign up, create a key on KEYS and paste it with the new URL. The query name can stay ?apiKey=, so on RPC and WebSocket only the host and key change. The stream also takes the port :9443.
!web3.js v1 derives its subscription URL from the HTTP one: set wsEndpoint on each Connection.

clients

migrate/ · 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

migrate/ · 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?); }
$Also served: getTransactionsForAddress, the ten DAS methods (DAS API), blockSubscribe, the stream's unary calls GetSlot, GetVersion, GetLatestBlockhash, GetBlockHeight, IsBlockhashValid, Ping and SubscribeReplayInfo, and priority-fee estimates under Helius and QuickNode names and shapes (rates: rate limits). A getTransactionsForAddress walk (full details, ascending, or any filter) bills per upstream call (RPC).
$History has a floor. getSignaturesForAddress pages come from an address index that keeps up to 30 days, so they reach below the validator's ledger floor. An empty page past 30 days marks the index's age limit; the address may have older transactions. getFirstAvailableBlock (the slot getTransactionsForAddress reports as historyFloor) is the ledger floor: the oldest slot getTransaction and getBlock serve. Signatures listed below it may not be fetchable with getTransaction.

not served

migrate/absent
featureproviderhere
enhanced transactions RESTheliusdecode getTransaction, getSignaturesForAddress or getTransactionsForAddress client side
metis RESTquicknodethe quote and swap JSON-RPC methods
swap API REST paths (api.carbium.io/api/v2/quote, /api/v1/swap)carbium.iothe quote and swap JSON-RPC methods
gRPC Enhanced WebSocket (wss://grpc.carbium.io/?apiKey=, accountSubscribe and transactionSubscribe at finalized)carbium.ioaccountSubscribe: WebSocket endpoint, finalized unless you pass a commitment. transactionSubscribe is not served: use logsSubscribe with mentions, or a carbon stream transactions filter
requestAirdrophelius, quicknodemainnet only, no faucet
DAS proofs and compressed NFTs (getAssetProof, getAssetProofs, getAssetProofBatch, getAssetSignatures, getSignaturesForAsset)helius, quicknodeunknown methods (-32601): do not retry
!Unlike LaserStream or Yellowstone: an owner filter must name a provisioned owner or is refused. An account list takes any address and delivers only accounts the feed carries; a plain SOL wallet stays silent, so use transactions.accountInclude. from_slot replay: initial subscribe only, processed commitment. To change filters, reconnect. Heavy shapes (an owner with no account, the transaction firehose, blocks, entry) need a heavy-streams plan and share a node-wide ceiling (rate limits). Frames are uncompressed; egress is metered as sent.
$Read errors before porting a switch-case. The long form, with the gRPC status and WebSocket close-code tables, is the SKILL.md.

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.