Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Subscriptions use the WebSocket endpoint wss://api.mobula.io/graphql/subscriptions with the graphql-transport-ws protocol.

Returns

onEventLabelCreated
EventLabel!
One label per next message — each MEV / MEV_SANDWICHED swap produces a separate event. See EventLabel.

Arguments

id
String
Pair ID in the form address:networkId. Omit to subscribe to the firehose (every label across every pair).

Example — single pair

subscription {
  onEventLabelCreated(id: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640:1") {
    id
    label
    networkId
    timestamp
    logIndex
    transactionIndex
    transactionHash
    data {
      __typename
      ... on FrontRunLabelData {
        index
        token0DrainedAmount
        token1DrainedAmount
      }
      ... on SandwichedLabelData {
        token0DrainedAmount
        token1DrainedAmount
      }
    }
  }
}

Example — firehose

subscription {
  onEventLabelCreated {
    id
    label
    networkId
    timestamp
    transactionHash
  }
}