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

# EventLabel

> MEV label (FrontRun or Sandwiched) attached to a single swap event.

### TypeScript shape

```ts theme={null}
interface EventLabel {
  data: EventLabelData;
  id: string;
  label: EventLabelType;
  logIndex: number;
  networkId: number;
  timestamp: number;
  transactionIndex: number;
  transactionHash: string;
}
```

<ResponseField name="id" type="String!">Pair identifier the label belongs to (matches the `id` argument passed to `getEventLabels`).</ResponseField>
<ResponseField name="label" type="EventLabelType!">`FrontRun` (mapped from `swap_type=MEV`) or `Sandwiched` (mapped from `swap_type=MEV_SANDWICHED`). See [EventLabelType](/api-reference/graphql/types/EventLabelType).</ResponseField>
<ResponseField name="data" type="EventLabelData">Per-label payload. Use a `__typename` switch. See [EventLabelData](/api-reference/graphql/types/EventLabelData).</ResponseField>
<ResponseField name="logIndex" type="Int!">Log index of the swap. Legacy NULL-index rows coerced to `0`.</ResponseField>
<ResponseField name="networkId" type="Int!">Network ID parsed from the input pair id.</ResponseField>
<ResponseField name="timestamp" type="Int!">Swap timestamp in Unix seconds.</ResponseField>
<ResponseField name="transactionIndex" type="Int!">Always `0` (the `swaps` table has no transaction index column).</ResponseField>
<ResponseField name="transactionHash" type="String!">Swap transaction hash. Empty string when null.</ResponseField>
