> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# EventLabelConnection

> Response returned by `getEventLabels`. Reference for the EventLabelConnection type in the Codex API: every field, its type, and the operations that return it.

## GraphQL

```
type EventLabelConnection {
  items: [EventLabel]
  cursor: String
}

type FrontRunLabelData {
  index: Int
  token0DrainedAmount: String!
  token1DrainedAmount: String!
}

type SandwichedLabelData {
  token0DrainedAmount: String
  token1DrainedAmount: String
}

union EventLabelData = FrontRunLabelData | SandwichedLabelData

enum EventLabelType {
  FrontRun
  Sandwiched
}

type EventLabel {
  data: EventLabelData!
  id: String!
  label: EventLabelType!
  logIndex: Int!
  networkId: Int!
  timestamp: Int!
  transactionIndex: Int!
  transactionHash: String!
}
```

### Used By

**Returned by**

* [getEventLabels](https://docs.codex.io/api-reference/queries/geteventlabels.md): Returns a list of event labels for a pair.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.