Skip to main content
The multi-events stream sends DEX trades (swaps) from several chains over one WebSocket subscription. You choose the chains and event kinds, and the server applies your filter before anything is sent. Each chain and event kind has its own cursor, so a client that disconnects can reconnect and pick up where it stopped. Use it when you want every trade that matches a rule, for example every trade over $100,000 on Ethereum and Base, or every trade sent by a list of wallets, without first knowing which tokens or pools those trades will touch.

How it differs from the /v1/ws channels

The WebSocket API at /v1/ws and the multi-events stream use the same message protocol: the same subscribe, unsubscribe and ping ops, and the same event, cursor, gap and error messages. Their purpose is different. The multi-events channel is only served on the multi-events stream. Subscribing to multi-events on /v1/ws returns an UNKNOWN_CHANNEL error. The same happens if you subscribe to a /v1/ws channel such as fast-trade on the multi-events stream. The stream doesn’t add market stats, candles or token stats. If you need those, use the /v1/ws channels or the REST API.

What is included

  • Trades only. Only swaps classified as trades are streamed. Liquidity adds and removals, and swaps classified as MEV or as launchpad bonding, are not sent. Every payload has "category": "TRADE".
  • Two event kinds. swap is the trade as indexed and priced. swap-enriched is the same trade with baseTokenData and quoteTokenData added. See Event payloads.
  • Once per kind. If you request both kinds, each matching trade is sent once as swap and once as swap-enriched.

Chains

Chains are identified as evm:<chainId> strings. Bare numbers such as 1 and names such as ethereum are rejected. See Chains and identifiers.
The server accepts any evm:<n> value and doesn’t check that the chain is indexed. A subscription to a chain that has no data succeeds and never delivers an event.

Connect

  • There is no authentication. You don’t need an API key or token.
  • Messages are JSON text frames in both directions.
As soon as the socket opens, the server sends a welcome message:
If the server is restarting or at capacity, the upgrade is refused with HTTP 503 Service Unavailable. Retry with backoff.

Quick example: large WETH buys on Ethereum

This subscription sends every Ethereum trade where WETH was bought for $100,000 or more.
A session looks like this (→ is sent by you, ← by the server; values are illustrative):
The cursor values let you resume after a disconnect. See Cursors and resuming.

How data flows

Indexers decode swaps from each chain, price them in USD, and publish each block’s trades in block order to a per-chain stream. The multi-events service reads those streams and sends every subscriber the trades its filter matches. Blocks are released strictly in order. If a block is stuck for more than about 15 seconds, the stream skips it and tells subscribers with a gap message. See How data flows for the wider picture.

Next steps

Subscribing

Params, pairs, the subscribed reply and sampling.

Event payloads

Every field of swap and swap-enriched, and how to derive buy or sell.

Filters

The filter grammar, limits and a cookbook.

Limits and subscription cost

How filters are priced and what closes a connection.