Skip to main content
Subscriptions use wss://graphql.mobula.io/graphql with the graphql-transport-ws protocol. wss://graphql.mobula.io/graphql/subscriptions is also supported for backwards compatibility.

Returns

AddEventsOutput!
Batched event payload scoped to the subscribed pair. See AddEventsOutput.

Arguments

String
Pair ID in the form address:networkId. Provide this or the address + networkId pair.
String
Pair contract address. Required when id is not provided.
Int
Network ID. Required when id is not provided.
QuoteToken
Override the quote side. When set, eventDisplayType (Buy/Sell) and the per-unit pricing fields on SwapEventData are recomputed against this quote. Defaults to token0. See QuoteToken.
[EventCommitmentLevel!]
Allow-list of commitment levels to receive. Defaults to [Confirmed]. Today only Confirmed events are produced; passing [Processed] only will receive nothing. See EventCommitmentLevel.

Example — by id

Example — by address + networkId, with explicit quoteToken