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

# EventLabelData

> Discriminated union of MEV label payloads on EventLabel.data.

### TypeScript shape

```ts theme={null}
type EventLabelData = FrontRunLabelData | SandwichedLabelData;
```

`EventLabelData` is a GraphQL union with two variants. Switch on `__typename`:

<ResponseField name="FrontRunLabelData" type="union">Front-run / back-run leg of an MEV attack. See [FrontRunLabelData](/api-reference/graphql/types/FrontRunLabelData).</ResponseField>
<ResponseField name="SandwichedLabelData" type="union">A swap that was sandwiched. See [SandwichedLabelData](/api-reference/graphql/types/SandwichedLabelData).</ResponseField>

### Usage

```graphql theme={null}
data {
  __typename
  ... on FrontRunLabelData { index token0DrainedAmount token1DrainedAmount }
  ... on SandwichedLabelData { token0DrainedAmount token1DrainedAmount }
}
```
