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

# LP and burn events for a token

> Non-swap pool activity for a token: LP deposits, LP withdrawals, token burns, and server-classified `rug_detected` events across every indexed pool.

Useful for detecting rug-pulls (large `lp_withdraw` events, or a `rug_detected` with `classification` `RUGGED`/`LIQUIDITY_DRAINING`), tracking dev positions, or surfacing freshly-locked liquidity.

For the real-time push of these same events, subscribe to the `pool_event` frame on the [`/ws/swaps`](/streaming/websocket) WebSocket.



## OpenAPI

````yaml /api-reference/openapi.json get /pool-events
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /pool-events:
    get:
      tags:
        - Pool events
      summary: LP and burn events for a token
      description: >-
        Non-swap pool activity for a token: LP deposits, LP withdrawals, token
        burns, and server-classified `rug_detected` events across every indexed
        pool.


        Useful for detecting rug-pulls (large `lp_withdraw` events, or a
        `rug_detected` with `classification` `RUGGED`/`LIQUIDITY_DRAINING`),
        tracking dev positions, or surfacing freshly-locked liquidity.


        For the real-time push of these same events, subscribe to the
        `pool_event` frame on the [`/ws/swaps`](/streaming/websocket) WebSocket.
      operationId: listPoolEvents
      parameters:
        - name: token
          in: query
          required: true
          schema:
            type: string
          description: Token mint.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 100
            minimum: 1
            maximum: 500
        - name: before
          in: query
          required: false
          schema:
            type: integer
          description: Cursor — epoch ms; returns events strictly older than this.
      responses:
        '200':
          description: Pool events
          content:
            application/json:
              schema:
                type: object
                properties:
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/PoolEvent'
                  total:
                    type: integer
                  has_more:
                    type: boolean
        '400':
          description: Missing `token`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    PoolEvent:
      type: object
      description: >-
        Liquidity-pool event other than a swap — LP deposit, LP withdraw, token
        burn, or a server-classified rug. The real-time push of these same
        events is the `pool_event` frame on the
        [`/ws/swaps`](/streaming/websocket) WebSocket: a large `lp_withdraw` is
        the live LP-removal signal, and `rug_detected` is its classified version
        (`RUGGED` / `LIQUIDITY_DRAINING`).
      properties:
        signature:
          type: string
        slot:
          type: integer
        timestamp:
          type: integer
          description: Unix epoch milliseconds.
        event_type:
          type: string
          enum:
            - lp_deposit
            - lp_withdraw
            - token_burn
            - rug_detected
        dex:
          type: string
        pool_address:
          type: string
        token_mint:
          type: string
        actor:
          type: string
          description: Wallet that emitted the event.
        base_amount:
          type: integer
          format: int64
          description: Token base units.
        quote_amount:
          type: integer
          format: int64
          description: Lamports for SOL-quoted pools.
        lp_token_amount:
          type: integer
          format: int64
          description: >-
            DAMM v2 saturates this to u64::MAX — prefer `base_amount` +
            `quote_amount` for math.
        drained_pct:
          type: number
          format: float
          minimum: 0
          maximum: 1
          description: >-
            Fraction of pool liquidity removed by this event, 0..1.
            Constant-product pools use the LP-supply ratio; Meteora CL uses the
            SOL-reserve ratio. `0.0` when not computable.
        classification:
          type: string
          description: >-
            Set only on `rug_detected` events: `RUGGED` when >95% of liquidity
            was removed, `LIQUIDITY_DRAINING` when 50–95%. Empty otherwise.
        pool_base_reserve_after:
          type: integer
          format: int64
          description: Post-event pool reserve, base side (atomic). `0` when N/A.
        pool_quote_reserve_after:
          type: integer
          format: int64
          description: >-
            Post-event pool reserve, quote side (lamports for SOL-quoted pools).
            `0` when N/A.
        lp_supply_after:
          type: integer
          format: int64
          description: Post-event total LP supply. Constant-product only — `0` for Meteora.
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_PARAM
            message:
              type: string
              example: >-
                use pair_address; see /api/v1/pairs?token_address=X to discover
                pools
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````