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

# Get Pool Events

> Gets raw event data for a specific token and pool. Returns binary data that needs to be decoded

## SDK Example

<CodeGroup>
  ```typescript SDK
  import { Client, processEventsAsync } from '@solana-tracker/data-api';

  const client = new Client({ apiKey: 'YOUR_API_KEY' });

  const data = await client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');

  const stats = await processEventsAsync(data);

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/openapi.json get /events/{tokenAddress}/{poolAddress}
openapi: 3.1.0
info:
  title: Solana Tracker Data API
  description: >-
    Solana Tracker Data API for token prices, holders, trades, charts, wallet
    data, risk signals, and market analytics.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
paths:
  /events/{tokenAddress}/{poolAddress}:
    get:
      tags:
        - Events
      summary: Get Pool Events
      description: >-
        Gets raw event data for a specific token and pool. Returns binary data
        that needs to be decoded
      parameters:
        - name: tokenAddress
          in: path
          required: true
          schema:
            type: string
        - name: poolAddress
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Returns binary data (application/octet-stream) that can be decoded
            into an array of events
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client, processEventsAsync } from
            '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');


            const stats = await processEventsAsync(data);
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client, processEventsAsync } from
            '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');


            const stats = await processEventsAsync(data);
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````