> For a complete page index, fetch https://docs.conduit.xyz/llms.txt

# Sequencer Feed Access

> Connect Arbitrum Nitro nodes and custom WebSocket clients to a Conduit sequencer feed with an API key. Covers backlog and resuming, compression, per-IP limits, and how feed usage counts toward compute units.

The sequencer feed is a WebSocket stream of messages from the chain's sequencer. Conduit serves it through a feed relay. Arbitrum Nitro nodes subscribe to it to follow the chain with low latency, without waiting for batches to land on the parent chain. Indexers, searchers, and other low-latency services can subscribe to it directly.

Anyone can connect to the feed. Clients that connect with a Conduit API key, the same key used for [RPC requests](/rpc-nodes/getting-started/get-an-api-key), have no per-IP limits and no compression requirement, and their feed traffic counts toward the key's [compute units](/rpc-nodes/information/compute-units) (CUs).

## Availability

| Network         | Feed URL                                    |
| --------------- | ------------------------------------------- |
| Elysium mainnet | `wss://relay-elysium-mainnet.t.conduit.xyz` |
| Elysium testnet | `wss://relay-elysium-testnet.t.conduit.xyz` |

## Connect with an API key

#### Create an API key

In the [Conduit app](https://app.conduit.xyz/nodes), go to **Nodes → API keys** and create a key. See [Get an API key](/rpc-nodes/getting-started/get-an-api-key).

#### Enable the key for the network

The key must be allowed on the network you're connecting to. A testnet client needs a key enabled for the testnet, and a mainnet client needs a key enabled for mainnet. See [Access Control & Settings](/rpc-nodes/guides/access-controls-settings).

#### Add the key to the feed URL

Add the key as the URL path. This is the only option for Nitro nodes, because they can only be configured with a URL. Other clients can send the key in the `X-AccessKey` header instead.

**`Nitro node`**

```bash Nitro node
--node.feed.input.url=wss://relay-elysium-mainnet.t.conduit.xyz/<API_KEY>
```

**`wscat (key in path)`**

```bash wscat (key in path)
wscat -c wss://relay-elysium-mainnet.t.conduit.xyz/<API_KEY>
```

**`wscat (key in header)`**

```bash wscat (key in header)
wscat -c wss://relay-elysium-mainnet.t.conduit.xyz \
  -H "X-AccessKey: <API_KEY>"
```

#### Restart the client

The client reconnects to the feed with the key.

> **Warning**
>
> **A key that isn't valid doesn't cause an error.** If the key is mistyped, deleted, disabled, or not enabled for the network, the relay doesn't reject the connection. It treats the client as having no key, and the connection gets the [limits for clients without a key](#limits-for-clients-without-a-key). A path segment that doesn't look like a key, such as `/feed`, is ignored in the same way.

## Connections with and without a key

|                    | With a valid API key                        | Without a key                                                                                      |
| ------------------ | ------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Connections per IP | No limit                                    | [Limited](#limits-for-clients-without-a-key)                                                       |
| Data per IP        | No limit                                    | [Hourly budget](#limits-for-clients-without-a-key)                                                 |
| Compression        | Optional                                    | [Required](#compression)                                                                           |
| Backlog on connect | Only when [resuming](#backlog-and-resuming) | Only when [resuming](#backlog-and-resuming)                                                        |
| Usage              | Counts toward the key's CUs                 | Cut off until the next hour once the [hourly budget](#limits-for-clients-without-a-key) is used up |

There's no limit on how many connections one key can open, across any number of IPs.

## Backlog and resuming

The relay keeps a backlog of recent feed messages. A client that reconnects can resume from where it left off by sending the `Arbitrum-Requested-Sequence-Number` header with the next sequence number it needs. Nitro nodes send this header on every connection.

The relay handles the backlog the same way for every client, with or without a key:

| What the client sends                                          | What the relay sends                                           |
| -------------------------------------------------------------- | -------------------------------------------------------------- |
| `Arbitrum-Requested-Sequence-Number` that is in the backlog    | The backlog from that sequence number, then the live feed      |
| No `Arbitrum-Requested-Sequence-Number` header                 | The live feed from the latest message, with no backlog         |
| `Arbitrum-Requested-Sequence-Number` that isn't in the backlog | The live feed from the latest message, with no backlog         |
| A header value that isn't a number                             | `400 Malformed HTTP header Arbitrum-Requested-Sequence-Number` |

If you need the messages you missed while disconnected, send `Arbitrum-Requested-Sequence-Number` set to the last sequence number you processed plus one. If you connect without it, you start at the latest message. Older messages are always available from the chain's RPC, for example with `eth_getBlockByNumber`.

## Compression

The relay supports WebSocket compression (`permessage-deflate`).

* **Clients without a key must negotiate compression.** A client without a key that doesn't is refused during the handshake with `400 Feed compression is required without an API key.`
* **Nitro nodes** negotiate compression automatically.
* **Keyed clients** never have to use compression. You should still enable it if your client supports it. Usage is counted on the bytes the relay sends, and the compressed feed is about one third the size of the uncompressed feed, so compression cuts feed CUs by about two thirds.

## Limits for clients without a key

Clients without a valid key have the following limits. Limits are counted per client IP.

| Limit                   | Value         | When exceeded                                                                                                                                                                       |
| ----------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Open connections per IP | 2             | `429 Too many open feed connections.` on the extra connection                                                                                                                       |
| Feed data per IP        | Hourly budget | Open connections are closed within about 5 seconds. New connections get `429 Feed byte limit reached for this IP; use an API key.` with a `Retry-After` header until the hour ends. |

Keyed connections from the same IP aren't affected by these limits.

## Usage and billing

The relay meters the bytes it sends on each keyed connection and converts them to compute units. Feed CUs are added to the same monthly CU allowance as RPC usage, at the same rates. See [Pricing & Costs](/rpc-nodes/information/pricing-costs).

What this means for your account:

* **One allowance for RPC and feed usage.** Feed CUs count toward the plan's included CUs, the 80% and 100% usage emails, and the billing export.
* **One usage number.** The Nodes page shows one combined CU total per key, without a separate line for the feed.
* **Feed usage can block RPC requests.** On the Free plan, or when a Pro or Enterprise spend limit is reached, RPC requests are blocked with `403` until the limit resets. This happens no matter whether RPC or feed traffic used up the allowance. If you run both an RPC integration and feed clients, use separate keys so you can see each key's usage, and set a spend limit that covers both.
* **The feed isn't cut off when you're over your limit.** Over its limit, a key loses keyed access. Its open feed connections are closed, and on reconnect it's treated as a client without a key, with the per-IP limits and compression requirement.

## Errors and disconnects

| Response                                                       | Cause                                                                                 | What to do                                                        |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| `400 Malformed HTTP header Arbitrum-Requested-Sequence-Number` | The header isn't a number                                                             | Send a decimal sequence number, or leave the header out           |
| `400 Feed compression is required without an API key.`         | Client without a key didn't negotiate compression                                     | Enable `permessage-deflate`, or connect with a key                |
| `429 Too many open feed connections.`                          | Client without a key has too many connections from one IP                             | Close extra connections, or connect with a key                    |
| `429 Feed byte limit reached for this IP; use an API key.`     | Client without a key used up the hourly data budget for its IP                        | Wait for `Retry-After`, or connect with a key                     |
| Connection closed with no response                             | Relay restart, key revoked (closed within about 30 seconds), or key over its CU limit | Reconnect with backoff, and resume from your last sequence number |

## Reconnecting reliably

* **Reconnect with exponential backoff and jitter.** When the relay restarts, every client disconnects at the same moment. Immediate retries are more likely to hit the per-IP connection limit.
* **Respect `Retry-After`** on `429` responses.
* **Always resume.** Track the last sequence number you processed and send it plus one in `Arbitrum-Requested-Sequence-Number`.
* **Use a key for each service**, so that usage, revocation, and limits are tracked separately for each service.

## FAQ

### I run a standard Nitro node. What do I need to do?

Add your API key to `--node.feed.input.url` and restart. Nitro already resumes from a sequence number and negotiates compression, so nothing else is needed.

### Can I use the feed without a key?

Yes, within the [limits for clients without a key](#limits-for-clients-without-a-key). A key is needed for more connections per IP, more data per IP, or an uncompressed feed.

### Does one key work for both RPC and the feed?

Yes. The same key works for both, and both count toward the same CU allowance. You can create separate keys to track RPC and feed usage separately.

### How do I get messages I missed while disconnected?

Resume with `Arbitrum-Requested-Sequence-Number`, or read older blocks from the chain's RPC endpoint.