Subscriptions (WebSockets) require a Growth or Enterprise plan. Learn more.
Returns
Arguments
The ID of the pair (
address:networkId). Required unless you are on an enterprise plan including EventFeed features.The token of interest within the pair. Can be
token0 or token1.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.