Skip to navigation

Sequencer Feed Access

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, have no per-IP limits and no compression requirement, and their feed traffic counts toward the key’s compute units (CUs).

Availability

NetworkFeed URL
Elysium mainnetwss://relay-elysium-mainnet.t.conduit.xyz
Elysium testnetwss://relay-elysium-testnet.t.conduit.xyz

Connect with an API key

1

Create an API key

In the Conduit app, go to Nodes → API keys and create a key. See Get an API key.

2

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.

3

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.

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

Restart the client

The client reconnects to the feed with the key.

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. 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 keyWithout a key
Connections per IPNo limitLimited
Data per IPNo limitHourly budget
CompressionOptionalRequired
Backlog on connectOnly when resumingOnly when resuming
UsageCounts toward the key’s CUsCut off until the next hour once the hourly budget 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 sendsWhat the relay sends
Arbitrum-Requested-Sequence-Number that is in the backlogThe backlog from that sequence number, then the live feed
No Arbitrum-Requested-Sequence-Number headerThe live feed from the latest message, with no backlog
Arbitrum-Requested-Sequence-Number that isn’t in the backlogThe live feed from the latest message, with no backlog
A header value that isn’t a number400 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.

LimitValueWhen exceeded
Open connections per IP2429 Too many open feed connections. on the extra connection
Feed data per IPHourly budgetOpen 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.

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

ResponseCauseWhat to do
400 Malformed HTTP header Arbitrum-Requested-Sequence-NumberThe header isn’t a numberSend 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 compressionEnable permessage-deflate, or connect with a key
429 Too many open feed connections.Client without a key has too many connections from one IPClose 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 IPWait for Retry-After, or connect with a key
Connection closed with no responseRelay restart, key revoked (closed within about 30 seconds), or key over its CU limitReconnect 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. 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.