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

# AddEventsOutput

> Response payload for the onEventsCreated subscription.

### TypeScript shape

```ts theme={null}
interface AddEventsOutput {
  address: string;
  networkId: number;
  id: string;
  quoteToken: QuoteToken | null;
  events: Event[];
}
```

<ResponseField name="address" type="String!">Pair contract address (lowercase).</ResponseField>
<ResponseField name="networkId" type="Int!">Network ID the pair is on.</ResponseField>
<ResponseField name="id" type="String!">Pair pointer in the form `address:networkId`.</ResponseField>

<ResponseField name="quoteToken" type="QuoteToken">
  Resolved quote side for the batch. Echoes the subscriber's `quoteToken` arg when set, otherwise the per-pool default (`token0`). See [QuoteToken](/api-reference/graphql/types/QuoteToken).

  <Expandable title="QuoteToken values">
    <ResponseField name="token0" type="enum">Quote token is `token0` of the pair.</ResponseField>
    <ResponseField name="token1" type="enum">Quote token is `token1` of the pair.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="events" type="[Event!]!">
  One or more events from the same pair, ordered by `(blockNumber, transactionIndex, logIndex)`. See [Event](/api-reference/graphql/types/Event).

  <Expandable title="View Event fields">
    <ResponseField name="id" type="String!">Per-event unique id (`transactionHash:logIndex:networkId`).</ResponseField>
    <ResponseField name="address" type="String!">Pair contract address (lowercase).</ResponseField>
    <ResponseField name="networkId" type="Int!">Network ID the pair is on.</ResponseField>
    <ResponseField name="eventType" type="EventType!">Type of the event. See [EventType](/api-reference/graphql/types/EventType).</ResponseField>
    <ResponseField name="eventDisplayType" type="EventDisplayType">Buy/Sell breakdown of Swap, or Mint/Burn. See [EventDisplayType](/api-reference/graphql/types/EventDisplayType).</ResponseField>
    <ResponseField name="commitmentLevel" type="EventCommitmentLevel!">Always `Confirmed` today. See [EventCommitmentLevel](/api-reference/graphql/types/EventCommitmentLevel).</ResponseField>
    <ResponseField name="data" type="EventData">Event-specific payload (Swap/Mint/Burn/PoolBalanceChanged). See [EventData](/api-reference/graphql/types/EventData).</ResponseField>
    <ResponseField name="maker" type="String">Wallet that initiated the transaction.</ResponseField>
    <ResponseField name="quoteToken" type="QuoteToken">The token-of-interest in the pair.</ResponseField>
    <ResponseField name="token0Address" type="String">Pair's token0 address.</ResponseField>
    <ResponseField name="token1Address" type="String">Pair's token1 address.</ResponseField>
    <ResponseField name="transactionHash" type="String!">Transaction hash.</ResponseField>
    <ResponseField name="logIndex" type="Int!">Log index within the block.</ResponseField>
    <ResponseField name="timestamp" type="Int!">Unix timestamp (seconds).</ResponseField>
  </Expandable>
</ResponseField>
