Carbium RPC

Solana gRPC Streaming with Carbium

Connect to Carbium's documented Solana streaming endpoints with the right client path, auth format, and production checks for Yellowstone-style gRPC.

If you are evaluating Carbium for real-time Solana data, the main question is not "does Carbium have streaming?" It does. The practical question is which Carbium streaming path matches your client and workload.

This page owns the canonical setup path for Carbium's public real-time streaming docs. Carbium serves Yellowstone (Geyser) stream data on the grpc.carbium.io hostname through two transports:

  • Native gRPC over HTTP/2 (https://grpc.carbium.io) for Yellowstone gRPC clients in Rust, Go, TypeScript or Python, and for grpcurl
  • WebSocket streaming (wss://grpc.carbium.io) for clients that use the transactionSubscribe / accountSubscribe JSON-RPC path

Both paths are available on the Business and Professional plans. For what each plan includes and what streaming costs, see Solana gRPC streaming on Carbium RPC.

Part of the Carbium Solana infrastructure stack.


Direct answer

Carbium publishes two customer streaming paths:

Path Endpoint Auth Best fit
Native Yellowstone gRPC (HTTP/2) https://grpc.carbium.io x-token metadata header Backends that want protobuf, multiple filters per stream, slots, blocks or replay from a past slot
Yellowstone-shaped streaming over WebSocket wss://grpc.carbium.io/?apiKey=YOUR_RPC_KEY apiKey query parameter Apps that want JSON messages and a transactionSubscribe / accountSubscribe stream without a gRPC client

Use the same RPC dashboard key on both paths. Streaming requires a Business or Professional plan. Free and Developer keys are rejected.

If you only need standard wallet reads, balance checks, or occasional submission status, stay on JSON-RPC. If your app reacts to transaction flow continuously, validates on-chain activity in near real time, or is burning requests through constant polling, this is the page you need.


When gRPC is the right tool

Use Carbium's streaming paths when one or more of these are true:

  • you need transaction or slot updates as they happen instead of polling every few seconds
  • you run indexing, monitoring, or alerting systems that stay hot all day
  • your current JSON-RPC traffic is dominated by repeated "is there something new yet?" reads
  • several services need the same feed and you want one upstream listener instead of many polling workers

Stay on standard JSON-RPC when:

  • your app mostly performs direct reads like balances, account fetches, or send-and-confirm flows
  • freshness measured in seconds is acceptable
  • your team has not yet validated that streaming changes the architecture enough to justify the extra moving parts

📘 gRPC is not the default answer for every Solana app. It is the better answer when polling waste, event timing, or shared listener architecture has become a real problem.


Choose the right Carbium streaming path

The biggest source of setup confusion is mixing transport style with client type.

Client shape Use this path Why
Rust, Go, TypeScript or Python backend with a Yellowstone gRPC client https://grpc.carbium.io + x-token Native protobuf stream, several filters per stream, slots / blocks / replay
Command-line testing grpcurl against grpc.carbium.io:443 + x-token Same native gRPC service
Node.js / TypeScript app that prefers plain JSON wss://grpc.carbium.io/?apiKey=... No gRPC client or proto files needed
Browser-adjacent service or a stack without HTTP/2 gRPC support wss://grpc.carbium.io/?apiKey=... WebSocket works where gRPC clients do not
Standard @solana/web3.js reads and writes https://rpc-service.carbium.io/?apiKey=... This is regular JSON-RPC, not a streaming path

The important split:

  • rpc-service.carbium.io is the normal JSON-RPC surface
  • https://grpc.carbium.io is the native Yellowstone gRPC surface (HTTP/2, key in x-token)
  • wss://grpc.carbium.io/?apiKey=... is the WebSocket streaming surface (JSON, key in the URL)
  • the RPC dashboard key is reused across all three

Browsers cannot open native gRPC streams. If the data has to reach a frontend, consume it in a backend and fan it out.


Plan limits

Limits are counted per account, not per API key: several keys on one account share the same caps. Each streaming path has its own counter.

Business Professional
gRPC HTTP/2: concurrent streams 5 15
gRPC HTTP/2: filters per stream 5 10
gRPC HTTP/2: accounts per filter 100 1,000
gRPC HTTP/2: fromSlot replay, blocks, entry ❌ ✅
WebSocket: concurrent connections 5 15
WebSocket: accounts per transactionSubscribe 100 1,000

Rules on every plan:

  • a transactions / transactionsStatus filter needs accountInclude, accountRequired or signature; an unfiltered "whole network" transaction stream is rejected
  • an accounts filter needs at least one account or owner
  • slots and blocksMeta need no filter
  • filters are checked on every request sent on an open stream, not only the first one

Counting rules:

  • Filters per stream: every named entry across all groups counts as one filter. For example, { accounts: { a: … }, transactions: { t: … }, slots: { s: {} } } is 3 filters.
  • Accounts per filter:
    • accounts filters: account + owner
    • transactions filters: accountInclude + accountExclude + accountRequired
    • transactionSubscribe on the WebSocket path: accountInclude + accountRequired + accountExclude

Billing: opening a stream or connection costs 1 credit, then 1 credit per 1,000 messages delivered. Plan credits are used first, then extra credits. When both reach 0 the stream ends (see the error table below).


Minimal setup: native gRPC (HTTP/2)

Use any Yellowstone gRPC client. TypeScript with @triton-one/yellowstone-grpc:

import Client, { CommitmentLevel } from "@triton-one/yellowstone-grpc";

const client = new Client("https://grpc.carbium.io", process.env.CARBIUM_RPC_KEY, {
  "grpc.max_receive_message_length": 64 * 1024 * 1024,
});
await client.connect();

const stream = await client.subscribe();

stream.on("data", (update) => {
  if (update.transaction) console.log(update.transaction.slot);
});
stream.on("error", (err) => console.error(err.cause ?? err));

stream.write({
  transactions: {
    raydium: {
      vote: false,
      failed: false,
      accountInclude: ["675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"],
      accountExclude: [],
      accountRequired: [],
    },
  },
  accounts: {},
  slots: {},
  transactionsStatus: {},
  entry: {},
  blocks: {},
  blocksMeta: {},
  accountsDataSlice: [],
  commitment: CommitmentLevel.CONFIRMED,
});

The client sends the key as the x-token header. With client 9.x, errors arrive as GenericFailure; the real gRPC status and message are in err.cause.

From the command line, the server has no reflection API, so pass the Yellowstone proto files (geyser.proto and solana-storage.proto from rpcpool/yellowstone-grpc):

grpcurl -import-path ./proto -proto geyser.proto \
  -H "x-token: $CARBIUM_RPC_KEY" \
  grpc.carbium.io:443 geyser.Geyser/GetVersion

grpcurl -import-path ./proto -proto geyser.proto \
  -H "x-token: $CARBIUM_RPC_KEY" \
  -d '{"slots":{"s":{}},"commitment":"CONFIRMED"}' \
  grpc.carbium.io:443 geyser.Geyser/Subscribe

Unary methods (GetVersion, GetSlot, GetLatestBlockhash, GetBlockHeight, IsBlockhashValid, Ping) are available on the same endpoint.


Minimal setup: WebSocket stream path

Use this when you want JSON messages without a gRPC client.

import WebSocket from "ws";

const ws = new WebSocket(
  `wss://grpc.carbium.io/?apiKey=${process.env.CARBIUM_RPC_KEY}`
);

ws.on("open", () => {
  ws.send(
    JSON.stringify({
      jsonrpc: "2.0",
      id: 1,
      method: "transactionSubscribe",
      params: [
        {
          vote: false,
          failed: false,
          accountInclude: ["675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"],
          accountExclude: [],
          accountRequired: [],
        },
        {
          commitment: "confirmed",
          encoding: "base64",
          transactionDetails: "full",
          showRewards: false,
          maxSupportedTransactionVersion: 0,
        },
      ],
    })
  );
});

ws.on("message", (data) => {
  const msg = JSON.parse(data.toString());
  console.log(msg);
});

The WebSocket path supports transactionSubscribe and accountSubscribe (plus their unsubscribe methods). For standard Solana pubsub methods like slotSubscribe or logsSubscribe, use wss://wss-rpc.carbium.io/?apiKey=....


Errors you can get

Native gRPC (HTTP/2)

Case gRPC status Message
No key in x-token UNAUTHENTICATED (16) Missing API key. Use x-token metadata.
Invalid key UNAUTHENTICATED (16) Invalid API key
Free or Developer plan PERMISSION_DENIED (7) User does not have a pro/business tier
Too many concurrent streams RESOURCE_EXHAUSTED (8) Too many gRPC streams: 15/15 for this plan
Credits ran out RESOURCE_EXHAUSTED (8) Insufficient credits
Too many filters PERMISSION_DENIED (7) Too many filters: 11/10 for this plan
Too many accounts in one filter PERMISSION_DENIED (7) Filter "x" has 1001 accounts, max 1000 for this plan
Transaction filter without accounts PERMISSION_DENIED (7) Transactions filter "t" needs accountInclude, accountRequired or signature
fromSlot, blocks or entry on Business PERMISSION_DENIED (7) from_slot replay requires the pro plan (or blocks … / entry …)
fromSlot older than the replay window (~1,000 slots) OUT_OF_RANGE (11) broadcast from X is not available, last available: Y

WebSocket

Case Response
Too many concurrent connections handshake 429 Too many gRPC-WSS connections: 15/15 for this plan
Free or Developer plan handshake 401
transactionSubscribe without accounts {"error":{"code":-32602,"message":"Invalid params: at least one of accountInclude or accountRequired must contain non-empty values"}}
Too many accounts {"error":{"code":-32602,"message":"Invalid params: accountInclude + accountRequired + accountExclude has 1001 accounts, max 1000 for this plan"}}
Credits ran out mid-stream {"error":{"code":-32003,"message":"Insufficient credits"}}, then close code 1008

Production checks before you commit to streaming

Treat streaming as an architecture decision, not just another endpoint to paste into a client.

1. Check your plan and limits first

Streaming needs Business or Professional. Size your design against the per-account limits above: concurrent streams, filters per stream and accounts per filter. Replay, blocks and entry need Professional.

2. Budget reconnect behavior

A real-time client is only as good as its reconnect policy. Before production, test:

  • what happens when the stream drops
  • how your worker resubscribes
  • whether duplicate listeners can start accidentally after reconnect

On Professional, fromSlot lets a native gRPC client resume from the last slot it saw, within the ~1,000-slot replay window.

A stream slot is freed when the connection closes. If a client drops a stream but keeps the HTTP/2 connection open, the slot can take up to ~40 seconds to free. A client that reconnects at its exact cap may briefly hit RESOURCE_EXHAUSTED.

3. Keep one upstream listener when possible

If multiple workers need the same feed, prefer one stream consumer that fans out internally. That is cleaner than letting every worker open its own hot stream, and it keeps you within the concurrent stream cap.

4. Filter narrowly

Every message counts toward credits. A broad filter such as the Token program delivers hundreds of transactions per second. Subscribe to the accounts you need.

5. Keep auth and routing simple

Use the RPC key only on the RPC and gRPC surfaces. Do not mix it with the separate Swap API key used on api.carbium.io.


Common mistakes

Mistake What usually happens Fix
Using @solana/web3.js against grpc.carbium.io as if it were standard RPC Client setup is wrong before the first request Keep normal reads and writes on rpc-service.carbium.io
Putting ?apiKey= in the native gRPC URL UNAUTHENTICATED: Missing API key. Use x-token metadata. Send the key in the x-token header; ?apiKey= is only for the WebSocket path
Subscribing to all transactions without accountInclude PERMISSION_DENIED / -32602 Add the accounts or programs you care about
Opening one stream per worker RESOURCE_EXHAUSTED at the plan's stream cap One listener, fan out internally
Forgetting that streaming uses the RPC dashboard key Auth failures even though the key exists Reuse the RPC key, not the Swap API key
Choosing streaming before proving polling is the bottleneck More moving parts without a real payoff Start with JSON-RPC and add streaming when the workload demands it

What this page does not own

This page explains Carbium's real-time streaming paths and when to use them. It does not own:

🔶 Need a streaming-capable Solana stack? Compare the Business and Professional plans at rpc.carbium.io/plans. Paid plans are arranged with the team while online checkout is not open: [email protected] or Discord. Card through Stripe and USDC open later. The Free plan is open now. Then validate the path your client actually uses, and then build out from there.