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

# PoolBalanceChangedEventData

> Event data for a BalancerV2 Pool Balance Changed event. PoolBalanceChangedEventData type reference: every field and its type.

## GraphQL

```
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!
}

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

### Used By

**Returned by**

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


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