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.
swapis the trade as indexed and priced.swap-enrichedis the same trade withbaseTokenDataandquoteTokenDataadded. See Event payloads. - Once per kind. If you request both kinds, each matching trade is sent once as
swapand once asswap-enriched.
Chains
Chains are identified asevm:<chainId> strings. Bare numbers such as 1 and names such as ethereum are rejected. See Chains and identifiers.
Connect
- There is no authentication. You don’t need an API key or token.
- Messages are JSON text frames in both directions.
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.→ is sent by you, ← by the server; values are illustrative):
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 agap 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.