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

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

Arguments

id
String
Pair ID in the form address:networkId. Provide this or the address + networkId pair.
address
String
Pair contract address. Required when id is not provided.
networkId
Int
Network ID. Required when id is not provided.
quoteToken
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.
commitmentLevel
[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