Skip to main content

Authentication

Every request is checked against your license. You will find the license key, the authentication mode and the IP whitelist in the Licenses section of the dashboard.

Authentication modes

Each license runs in one of two modes. Switch between them under Authentication Mode in the dashboard, or with the Toggle Auth Mode endpoint. In API Key Only mode the key is the only thing standing between your license and anyone else, so keep it out of client-side code and public repos, and regenerate it from the dashboard if it leaks. Rentals are disabled while a license is in this mode.
A license also covers a set of regions. A request to a region outside your license returns -32404 IP not whitelisted in either mode, even with the right key. On gRPC, Jetstream closes the connection (Unavailable: EOF) and Yellowstone returns PermissionDenied: IP not whitelisted for this api key. Use the regions listed on your license, or check them with the locations endpoint.

Sending your key

The header keeps the key out of URLs, which tend to end up in logs and proxies. Use it wherever your client can set headers. With the SDKs, set ORBITFLARE_LICENSE_KEY in the environment or call .api_key() (.apiKey() in TypeScript, .APIKey() in Go) on any client builder. The RPC and WebSocket clients send it as api_key, and the Jetstream and Yellowstone clients send it as x-token. In IP Whitelist mode the gRPC clients work without a key, so you can leave it unset there.

When authentication fails

The error reference lists every error, and gRPC debugging covers streaming connections in detail.

Customer API Authentication

The Customer API uses a different authentication method. Pass your API key via the X-ORBIT-KEY HTTP header:
Customer API v2 also supports Bearer token authentication obtained through the device flow or wallet signature auth. See the Customer API docs for details.

RPC Endpoints

OrbitFlare provides geo-distributed RPC endpoints so you can route requests to the region closest to your users or infrastructure. The URL format is:
Replace {region} with one of the region codes below.

Available Regions

Choosing a Region

Endpoints are region-pinned. Pick the region closest to your infrastructure for the lowest latency, for example Frankfurt:
Latency to the nearest region is what matters most. If you are unsure which region is closest to your servers, test a few with the /health endpoint and compare round-trip times.

WebSocket Endpoints

WebSocket connections use the same region codes with the wss:// scheme:
For example, Frankfurt:
Authentication is handled through the same api_key query parameter.

Devnet

OrbitFlare provides a dedicated Devnet endpoint for development and testing:
The Devnet endpoint connects to the Solana Devnet. Do not use it for production workloads. Devnet tokens have no monetary value.

Rate Limits by Plan

Each plan defines a maximum number of requests per second (RPS) and transactions per second (TPS).
Requests that exceed your plan’s RPS or TPS limit will receive an HTTP 429 Too Many Requests response. Implement exponential backoff in your client to handle these gracefully.
No. OrbitFlare does not impose monthly credit limits or request caps. You can send unlimited total requests within your plan’s per-second rate limit.
OrbitFlare plans have no credit limits — you can make unlimited requests as long as you stay within your plan’s per-second rate tier. There are no surprise overage charges.

Archival requests

Requests that have to read historical data from the archive, such as getTransactionsForAddress calls that reach it, have a separate limit of 10% of your plan’s RPS. Going over it returns HTTP 429 with the message archival rate limit exceeded.

Data Streaming Connection Limits

Connection limits apply independently of your RPC rate limit tier and are enforced per IP address.

Jetstream

Each regional endpoint counts its own connections: 25 Jetstream connections to Amsterdam do not stop you from opening more to Frankfurt or New York. The OrbitFlare SDKs open one connection per stream, so each SDK stream counts toward the 25. What happens when a limit is exceeded
  • Too many connections: Jetstream resets a new connection before the gRPC handshake, which clients report as UNAVAILABLE (connection reset by peer). Close unused streams before opening new ones, and back off exponentially when reconnecting.
  • Too many streams on one connection: the 21st stream is refused with REFUSED_STREAM. Some clients, including grpc-go, queue it until another stream on the connection closes.

Yellowstone

Connections are counted per regional endpoint, like Jetstream. Yellowstone also caps each list in a single filter: The caps are per filter, so a request with two transaction filters of 400 pubkeys each is accepted.
The OrbitFlare SDKs open one connection per stream, so with Yellowstone you can run at most 5 SDK streams from one IP per region. Put several named filters on one stream, or change them on the open stream, instead of opening a stream per filter. Dedicated gRPC nodes are not subject to the shared limits. If you need more, contact the team about a dedicated gRPC node.
What happens when a limit is exceeded
  • Too many streams on one connection: the 21st stream is refused with REFUSED_STREAM.
  • Too many pubkeys: Yellowstone rejects the subscription with INVALID_ARGUMENT, for example failed to create filter: Max amount of Pubkeys reached, only 600 allowed. Retrying the same request fails the same way, so the SDKs end the stream with this error instead of reconnecting.

Keeping gRPC connections alive

Cloud load balancers and proxies (including Cloudflare) may close idle Jetstream and Yellowstone streams after ~10 minutes. The OrbitFlare SDKs ping the stream every 10 seconds and send HTTP/2 keepalive pings every 20 seconds on their own. With your own client, send a ping every 30 seconds to prevent disconnection:

WebSocket

WebSocket connections are limited to 50 concurrent connections per IP. Idle connections are dropped after several minutes without traffic, with close code 1006 and no close frame. Send a WebSocket ping frame every 20 to 30 seconds to keep them open. See WebSocket debugging. What happens when the limit is exceeded New WebSocket connections attempted beyond the limit are rejected with a 1008 Policy Violation close code:
The gRPC limits (25 Jetstream and 5 Yellowstone connections) and the 50 WebSocket connections apply to all shared plans. If your workload requires more concurrent streaming connections, a Dedicated gRPC Node or Dedicated RPC Node removes the shared limit entirely. Contact the team on Discord to discuss options.
gRPC connections are counted per regional endpoint: one IP can hold 25 Jetstream connections to Frankfurt and another 25 to New York. WebSocket connections are counted globally per IP across all regions, so 30 connections to Frankfurt and 20 to New York reach the 50-connection cap.
Use exponential backoff when reconnecting after a connection error. Start with a 1-second delay, doubling on each failed attempt up to a maximum of 30 seconds. Always close streams cleanly before reconnecting to avoid exhausting your connection quota.