> ## 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.

# onEventLabelCreated

> Live-streamed sandwich and front-run labels for one pair or for the firehose across all pairs.

<Note>
  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.
</Note>

### Returns

<ResponseField name="onEventLabelCreated" type="EventLabel!">
  One label per `next` message — each `MEV` / `MEV_SANDWICHED` swap produces a separate event. See [EventLabel](/api-reference/graphql/types/EventLabel).
</ResponseField>

### Arguments

<ResponseField name="id" type="String">
  Pair ID in the form `address:networkId`. Omit to subscribe to the firehose (every label across every pair).
</ResponseField>

### Example — single pair

```graphql theme={null}
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

```graphql theme={null}
subscription {
  onEventLabelCreated {
    id
    label
    networkId
    timestamp
    transactionHash
  }
}
```
