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

# EventData

> Event-specific data for a token transaction.

<div data-generated>
  ## GraphQL

  ```
  union EventData = BurnEventData | MintEventData | SwapEventData | PoolBalanceChangedEventData

  enum EventType {
    Burn
    Mint
    Swap
    Sync
    Collect
    CollectProtocol
    PoolBalanceChanged
    LiquidityLock
  }

  type BurnEventData {
    amount0: String
    amount1: String
    amount0Shifted: String
    amount1Shifted: String
    tickLower: String
    tickUpper: String
    type: EventType!
  }

  type MintEventData {
    amount0: String
    amount1: String
    amount0Shifted: String
    amount1Shifted: String
    tickLower: String
    tickUpper: String
    type: EventType!
  }

  type SwapEventData {
    amount0: String
    amount0In: String
    amount0Out: String
    amount1: String
    amount1In: String
    amount1Out: String
    amountNonLiquidityToken: String
    priceBaseToken: String
    priceBaseTokenTotal: String
    priceUsd: String
    priceUsdTotal: String
    tick: String
    type: EventType!
  }

  type PoolBalanceChangedEventData {
    amount0: String
    amount1: String
    amount0Shifted: String
    amount1Shifted: String
    token0: String
    token1: String
    sender: String
    protocolFeeAmount0: String
    protocolFeeAmount1: String
    liquidity0: String
    liquidity1: String
    type: EventType!
  }
  ```

  ### Used By

  **Returned by**

  * [getTokenEvents](/api-reference/queries/gettokenevents.md): Returns transactions for a pair.
  * [getTokenEventsForMaker](/api-reference/queries/gettokeneventsformaker.md): Returns a list of token events for a given maker (wallet address).
  * [onEventsCreated](/api-reference/subscriptions/oneventscreated.md): Live-streamed transactions for a pair.
  * [onEventsCreatedByMaker](/api-reference/subscriptions/oneventscreatedbymaker.md): Live-streamed transactions for a maker.
  * [onTokenEventsCreated](/api-reference/subscriptions/ontokeneventscreated.md): Live-streamed events for a given token across all it's pools
</div>
