This endpoint requires a Growth or Enterprise plan. Learn more.
Returns
See AddEventsOutput
Arguments
The pair contract address.
The ID of the pair (
address:networkId). Required unless you are on an enterprise plan including EventFeed features.The commitment levels to subscribe to. When multiple commitment levels are subscribed to, events are emitted at most once per increasing commitment stage per subscriber. If a stronger commitment level is observed first, later weaker updates for the same event are suppressed for a short in-memory window. Preprocessed is supported only for Solana event subscriptions. Preprocessed evaluates pre-execution events and can differ significantly from processed or confirmed output. In particular, preprocessed swaps may use aggregator swaps before it is known how execution will route the underlying swaps, and many preprocessed events may error and never be processed.
See EventCommitmentLevel
The token of interest within the pair. Can be
token0 or token1.
See QuoteTokenThe networkId to use when getting all events per network
Example Response
Usage Guidelines
- Subscribe by
id(formatpairAddress:networkId) to stream transactions for a specific pair - Alternatively, use
address+networkIdto identify the pair, or justnetworkIdto stream all events on a network - Set
quoteTokentotoken0ortoken1to control which token is treated as the base for display eventDisplayTypeprovides a human-readable label (Buy,Sell) relative to thequoteToken- Use
token0SwapValueUsd/token1SwapValueUsdfor the USD value of each side of the swap labelsincludes MEV detection (e.g., sandwich attacks) for transaction quality assessmentwalletAgereturns the age of the maker wallet in seconds, useful for filtering out new wallets
Troubleshooting Tips
What's the difference between eventType and eventDisplayType?
What's the difference between eventType and eventDisplayType?
eventType is the raw on-chain event (e.g., Swap, Mint, Burn). eventDisplayType is a user-friendly label relative to the quoteToken — for example, a Swap is displayed as Buy or Sell depending on which direction the trade went for the quote token.Can I stream events for all pairs on a network?
Can I stream events for all pairs on a network?
Yes. Pass only
networkId without an address or id to receive all events across a network. This is high-volume — use it with caution or filter client-side.What do the labels fields indicate?
What do the labels fields indicate?
labels provides MEV and behavioral detection. The sandwich field indicates whether a transaction is part of a sandwich attack — sandwichType identifies it as frontrun, backrun, or sandwiched, and token0DrainedAmount / token1DrainedAmount show how much value was extracted.How does quoteToken affect the response?
How does quoteToken affect the response?
quoteToken determines the perspective of eventDisplayType. For example, in a SOL/USDC pair where SOL is token0, setting quoteToken: token0 means buying SOL shows as Buy and selling SOL shows as Sell.Related Recipes
- Events: Build a token swap list with filtering, pagination, and real-time updates