> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbitflare.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create your OrbitFlare account, copy your license key from the dashboard, and call mainnet Solana JSON-RPC with curl or any HTTP client. Includes a free tier; upgrade for higher limits and regional endpoints.

**1. Create an Account**

Sign up at [orbitflare.com](https://orbitflare.com) and choose a plan that fits your needs. A **free tier** is available so you can start building immediately with no credit card required.

> [!TIP]
>
> The free plan includes 10 requests per second -- enough to prototype and test your integration before upgrading.

**2. Get Your License Key**

Once you have signed in, navigate to the **Dashboard** and locate the **Licenses** section. Your license key is provided with your service subscription — copy it from there.

You will authenticate RPC requests by appending the license key as the `api_key` query parameter to the endpoint URL.

> [!WARNING]
>
> Keep your license key secret. Do not commit it to version control or expose it in client-side code.

**3. Make Your First RPC Call**

Use the mainnet endpoint to call `getBlockHeight` and confirm everything is working.

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -X POST "https://fra.rpc.orbitflare.com?api_key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getBlockHeight"
  }'
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
const response = await fetch(
  "https://fra.rpc.orbitflare.com?api_key=YOUR_API_KEY",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      jsonrpc: "2.0",
      id: 1,
      method: "getBlockHeight",
    }),
  }
);

const data = await response.json();
console.log("Block height:", data.result);
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
import requests

response = requests.post(
    "https://fra.rpc.orbitflare.com?api_key=YOUR_API_KEY",
    headers={"Content-Type": "application/json"},
    json={
        "jsonrpc": "2.0",
        "id": 1,
        "method": "getBlockHeight",
    },
)

data = response.json()
print("Block height:", data["result"])
```

A successful response looks like this:

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
{
  "jsonrpc": "2.0",
  "result": 283458923,
  "id": 1
}
```

**4. Try WebSockets**

OrbitFlare supports persistent WebSocket connections for real-time data. Connect to `wss://fra.rpc.orbitflare.com` and subscribe to updates.

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
const WebSocket = require("ws");

const ws = new WebSocket(
  "wss://fra.rpc.orbitflare.com?api_key=YOUR_API_KEY"
);

ws.on("open", () => {
  ws.send(
    JSON.stringify({
      jsonrpc: "2.0",
      id: 1,
      method: "slotSubscribe",
    })
  );
  console.log("Subscribed to slot updates");
});

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

ws.on("error", (err) => {
  console.error("WebSocket error:", err);
});
```

> [!NOTE]
>
> WebSocket connections use the same `api_key` query parameter for authentication.

## What's Next?

> [card] [Authentication & Limits](https://docs.orbitflare.com/authentication.md)
>
> Understand API key usage, endpoint formats, rate limits, and streaming connection limits.

> [card] [RPC Documentation](https://docs.orbitflare.com/rpc/http.md)
>
> Dive into the complete HTTP RPC method reference.

> [card] [Data Streaming](https://docs.orbitflare.com/data-streaming/jetstream.md)
>
> Stream real-time Solana data with Jetstream.

> [card] [Error Codes](https://docs.orbitflare.com/rpc/error-codes.md)
>
> HTTP status codes, JSON-RPC errors, and how to handle them.

> [card] [Starter Templates](https://github.com/orbitflare/templates)
>
> Production-ready starter templates for building on Solana — Blinks, swaps, and more.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.