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

# Token snipers

> Returns sniper analysis for a token: each sniper's snipe types, initial trade, timing, spend, and optional PnL, plus an aggregate overview.

```bash theme={null}
curl "https://staging-api.struct.to/v1/token/audit/snipers?chain=robinhood&chain_id=4663&token_address=0x39dBED3a2bd333467115dE45665cC57F813C4571&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "snipes": [
    {
      "trader": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
      "status": "held",
      "snipe_types": [
        {
          "snipe_type": "block_zero",
          "pool_id": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
          "initial_trade": {
            "tx_hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
            "native_spent": 0.12,
            "usd_spent": 296.88,
            "tokens_bought": 680000,
            "percentage_of_supply_bought": 0.068
          },
          "block_difference": 0,
          "time_difference_ms": 420
        }
      ],
      "pnl_data": {
        "status": "open",
        "buy_count": 8,
        "sell_count": 5,
        "total_trades": 13,
        "total_bought": 680000.0,
        "total_sold": 420000.0,
        "position_amount": 260000.0,
        "estimated_value_native": 7.14,
        "estimated_value_usd": 17670.26,
        "value_price_native": 3.906497e-05,
        "value_price_usd": 0.09664868619,
        "buy_native": 1.2,
        "sell_native": 1.6,
        "pnl_native": 0.4,
        "buy_usd": 178.0,
        "sell_usd": 237.0,
        "pnl_usd": 59.0,
        "avg_buy_price_native": 1.76e-06,
        "avg_buy_price_usd": 0.00026176,
        "avg_sell_price_native": 3.81e-06,
        "avg_sell_price_usd": 0.00056429,
        "opening_price_native": 1.2e-06,
        "closing_price_native": 3.81e-06,
        "opening_price_usd": 0.00018,
        "closing_price_usd": 0.00056429,
        "high_price_native": 4.2e-06,
        "low_price_native": 1.1e-06,
        "high_price_usd": 0.00063,
        "low_price_usd": 0.000165,
        "avg_buy_market_cap_native": 1760.0,
        "avg_buy_market_cap_usd": 261760.0,
        "avg_sell_market_cap_native": 3810.0,
        "avg_sell_market_cap_usd": 564290.0,
        "total_priority_fees": 0.014,
        "total_bot_fees": 0.008,
        "total_tip_amount": 0.002,
        "first_trade_at": 1705000000000,
        "last_trade_at": 1710000000000,
        "last_pool": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
        "first_tx_hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
        "timeframe": "lifetime"
      }
    }
  ],
  "overview": {
    "sniper_count": 7,
    "block_zero_buyer_count": 4,
    "migration_sniper_count": 1,
    "total_amount_spent_native": 7.44,
    "total_amount_spent_usd": 18420.55,
    "total_supply_bought": 0.068,
    "total_percentage_of_supply_bought": 6.8
  }
}
```

```jsonc Response (Short) theme={null}
{
  "sn": [
    {
      "tr": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
      "st": "held",
      "sty": [
        {
          "sty": "block_zero",
          "p": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
          "it": {
            "th": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
            "ns": 0.12,
            "us": 296.88,
            "tb": 680000,
            "psb": 0.068
          },
          "bd": 0,
          "tdm": 420
        }
      ],
      "pnl": {
        "st": "open",
        "bc": 8,
        "sc": 5,
        "tt": 13,
        "tbo": 680000.0,
        "tso": 420000.0,
        "pa": 260000.0,
        "evn": 7.14,
        "evu": 17670.26,
        "vpn": 3.906497e-05,
        "vpu": 0.09664868619,
        "bn": 1.2,
        "sn": 1.6,
        "pnn": 0.4,
        "bu": 178.0,
        "su": 237.0,
        "pu": 59.0,
        "abpn": 1.76e-06,
        "abpu": 0.00026176,
        "aspn": 3.81e-06,
        "aspu": 0.00056429,
        "opn": 1.2e-06,
        "clpn": 3.81e-06,
        "opu": 0.00018,
        "clpu": 0.00056429,
        "hpn": 4.2e-06,
        "lpn": 1.1e-06,
        "hpu": 0.00063,
        "lpu": 0.000165,
        "abmcn": 1760.0,
        "abmcu": 261760.0,
        "asmcn": 3810.0,
        "asmcu": 564290.0,
        "tpf": 0.014,
        "tbf": 0.008,
        "tta": 0.002,
        "fta": 1705000000000,
        "lta": 1710000000000,
        "lpo": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
        "fth": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
        "tf": "lifetime"
      }
    }
  ],
  "ov": {
    "sc": 7,
    "b0c": 4,
    "msc": 1,
    "tasn": 7.44,
    "tasu": 18420.55,
    "tsb": 0.068,
    "tpsb": 6.8
  }
}
```


## OpenAPI

````yaml onchain-openapi.json GET /token/audit/snipers
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /token/audit/snipers:
    get:
      tags:
        - Token / Audit
      summary: Token snipers
      description: >-
        Returns sniper analysis for a token: each sniper's snipe types, initial
        trade, timing, spend, and optional PnL, plus an aggregate overview.
      operationId: get_token_snipers
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: robinhood
        - name: chain_id
          in: query
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
          example: 4663
        - name: token_address
          in: query
          description: Token address (required).
          required: true
          schema:
            type: string
          example: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        - name: x-field-names
          in: header
          required: false
          description: >-
            Select long (full) or short (abbreviated) field names. HTTP defaults
            to `long`. Takes precedence over `fields`. See [Response
            Format](/api-reference/response-format#long-and-short-field-names).
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
        - name: fields
          in: query
          required: false
          description: >-
            Same as `x-field-names`. Use `long` or `short`. HTTP defaults to
            `long`. Ignored when the header is set. `field_names` is accepted as
            an alias.
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
      responses:
        '200':
          description: Sniper analysis
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SnipersData'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    snipes:
                      - trader: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                        status: held
                        snipe_types:
                          - snipe_type: block_zero
                            pool_id: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                            initial_trade:
                              tx_hash: >-
                                0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                              native_spent: 0.12
                              usd_spent: 296.88
                              tokens_bought: 680000
                              percentage_of_supply_bought: 0.068
                            block_difference: 0
                            time_difference_ms: 420
                        pnl_data:
                          status: open
                          buy_count: 8
                          sell_count: 5
                          total_trades: 13
                          total_bought: 680000
                          total_sold: 420000
                          position_amount: 260000
                          estimated_value_native: 7.14
                          estimated_value_usd: 17670.26
                          value_price_native: 0.00003906497
                          value_price_usd: 0.09664868619
                          buy_native: 1.2
                          sell_native: 1.6
                          pnl_native: 0.4
                          buy_usd: 178
                          sell_usd: 237
                          pnl_usd: 59
                          avg_buy_price_native: 0.00000176
                          avg_buy_price_usd: 0.00026176
                          avg_sell_price_native: 0.00000381
                          avg_sell_price_usd: 0.00056429
                          opening_price_native: 0.0000012
                          closing_price_native: 0.00000381
                          opening_price_usd: 0.00018
                          closing_price_usd: 0.00056429
                          high_price_native: 0.0000042
                          low_price_native: 0.0000011
                          high_price_usd: 0.00063
                          low_price_usd: 0.000165
                          avg_buy_market_cap_native: 1760
                          avg_buy_market_cap_usd: 261760
                          avg_sell_market_cap_native: 3810
                          avg_sell_market_cap_usd: 564290
                          total_priority_fees: 0.014
                          total_bot_fees: 0.008
                          total_tip_amount: 0.002
                          first_trade_at: 1705000000000
                          last_trade_at: 1710000000000
                          last_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                          first_tx_hash: >-
                            0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                          timeframe: lifetime
                    overview:
                      sniper_count: 7
                      block_zero_buyer_count: 4
                      migration_sniper_count: 1
                      total_amount_spent_native: 7.44
                      total_amount_spent_usd: 18420.55
                      total_supply_bought: 0.068
                      total_percentage_of_supply_bought: 6.8
                short:
                  summary: Response (Short)
                  value:
                    sn:
                      - tr: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                        st: held
                        sty:
                          - sty: block_zero
                            p: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                            it:
                              th: >-
                                0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                              ns: 0.12
                              us: 296.88
                              tb: 680000
                              psb: 0.068
                            bd: 0
                            tdm: 420
                        pnl:
                          st: open
                          bc: 8
                          sc: 5
                          tt: 13
                          tbo: 680000
                          tso: 420000
                          pa: 260000
                          evn: 7.14
                          evu: 17670.26
                          vpn: 0.00003906497
                          vpu: 0.09664868619
                          bn: 1.2
                          sn: 1.6
                          pnn: 0.4
                          bu: 178
                          su: 237
                          pu: 59
                          abpn: 0.00000176
                          abpu: 0.00026176
                          aspn: 0.00000381
                          aspu: 0.00056429
                          opn: 0.0000012
                          clpn: 0.00000381
                          opu: 0.00018
                          clpu: 0.00056429
                          hpn: 0.0000042
                          lpn: 0.0000011
                          hpu: 0.00063
                          lpu: 0.000165
                          abmcn: 1760
                          abmcu: 261760
                          asmcn: 3810
                          asmcu: 564290
                          tpf: 0.014
                          tbf: 0.008
                          tta: 0.002
                          fta: 1705000000000
                          lta: 1710000000000
                          lpo: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                          fth: >-
                            0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                          tf: lifetime
                    ov:
                      sc: 7
                      b0c: 4
                      msc: 1
                      tasn: 7.44
                      tasu: 18420.55
                      tsb: 0.068
                      tpsb: 6.8
        '400':
          description: Validation error — missing `token_address` or invalid address.
components:
  schemas:
    SnipersData:
      type: object
      required:
        - snipes
        - overview
      properties:
        snipes:
          type: array
          items:
            $ref: '#/components/schemas/Snipes'
        overview:
          $ref: '#/components/schemas/SnipersOverview'
    Snipes:
      type: object
      required:
        - snipe_types
      properties:
        trader:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
        snipe_types:
          type: array
          items:
            $ref: '#/components/schemas/SnipeTypes'
        pnl_data:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TraderPnlResponse'
    SnipersOverview:
      type: object
      properties:
        sniper_count:
          type:
            - integer
            - 'null'
          format: int32
        block_zero_buyer_count:
          type:
            - integer
            - 'null'
          format: int32
        migration_sniper_count:
          type:
            - integer
            - 'null'
          format: int32
        total_amount_spent_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        total_amount_spent_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        total_supply_bought:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        total_percentage_of_supply_bought:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
    SnipeTypes:
      type: object
      properties:
        snipe_type:
          type:
            - string
            - 'null'
        pool_id:
          type:
            - string
            - 'null'
        initial_trade:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/InitialTrade'
        block_difference:
          type:
            - integer
            - 'null'
          format: int64
        time_difference_ms:
          type:
            - integer
            - 'null'
          format: int64
    TraderPnlResponse:
      type: object
      required:
        - status
        - position_amount
      properties:
        status:
          type: string
        buy_count:
          type:
            - integer
            - 'null'
          format: int64
        sell_count:
          type:
            - integer
            - 'null'
          format: int64
        total_trades:
          type:
            - integer
            - 'null'
          format: int64
        total_bought:
          type:
            - number
            - 'null'
          format: double
        total_sold:
          type:
            - number
            - 'null'
          format: double
        position_amount:
          type: number
          format: double
        estimated_value_native:
          type:
            - number
            - 'null'
          format: double
        estimated_value_usd:
          type:
            - number
            - 'null'
          format: double
        value_price_native:
          type:
            - number
            - 'null'
          format: double
        value_price_usd:
          type:
            - number
            - 'null'
          format: double
        buy_native:
          type:
            - number
            - 'null'
          format: double
        sell_native:
          type:
            - number
            - 'null'
          format: double
        pnl_native:
          type:
            - number
            - 'null'
          format: double
        buy_usd:
          type:
            - number
            - 'null'
          format: double
        sell_usd:
          type:
            - number
            - 'null'
          format: double
        pnl_usd:
          type:
            - number
            - 'null'
          format: double
        avg_buy_price_native:
          type:
            - number
            - 'null'
          format: double
        avg_buy_price_usd:
          type:
            - number
            - 'null'
          format: double
        avg_sell_price_native:
          type:
            - number
            - 'null'
          format: double
        avg_sell_price_usd:
          type:
            - number
            - 'null'
          format: double
        opening_price_native:
          type:
            - number
            - 'null'
          format: double
        closing_price_native:
          type:
            - number
            - 'null'
          format: double
        opening_price_usd:
          type:
            - number
            - 'null'
          format: double
        closing_price_usd:
          type:
            - number
            - 'null'
          format: double
        high_price_native:
          type:
            - number
            - 'null'
          format: double
        low_price_native:
          type:
            - number
            - 'null'
          format: double
        high_price_usd:
          type:
            - number
            - 'null'
          format: double
        low_price_usd:
          type:
            - number
            - 'null'
          format: double
        avg_buy_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        avg_buy_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        avg_sell_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        avg_sell_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        total_priority_fees:
          type:
            - number
            - 'null'
          format: double
        total_bot_fees:
          type:
            - number
            - 'null'
          format: double
        total_tip_amount:
          type:
            - number
            - 'null'
          format: double
        first_trade_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the first trade, in milliseconds.
        last_trade_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the latest trade, in milliseconds.
        last_pool:
          type:
            - string
            - 'null'
        first_tx_hash:
          type:
            - string
            - 'null'
        timeframe:
          type:
            - string
            - 'null'
      example:
        status: open
        buy_count: 8
        sell_count: 5
        total_trades: 13
        total_bought: 680000
        total_sold: 420000
        position_amount: 260000
        estimated_value_native: 7.14
        estimated_value_usd: 17670.26
        value_price_native: 0.00003906497
        value_price_usd: 0.09664868619
        buy_native: 1.2
        sell_native: 1.6
        pnl_native: 0.4
        buy_usd: 178
        sell_usd: 237
        pnl_usd: 59
        avg_buy_price_native: 0.00000176
        avg_buy_price_usd: 0.00026176
        avg_sell_price_native: 0.00000381
        avg_sell_price_usd: 0.00056429
        opening_price_native: 0.0000012
        closing_price_native: 0.00000381
        opening_price_usd: 0.00018
        closing_price_usd: 0.00056429
        high_price_native: 0.0000042
        low_price_native: 0.0000011
        high_price_usd: 0.00063
        low_price_usd: 0.000165
        avg_buy_market_cap_native: 1760
        avg_buy_market_cap_usd: 261760
        avg_sell_market_cap_native: 3810
        avg_sell_market_cap_usd: 564290
        total_priority_fees: 0.014
        total_bot_fees: 0.008
        total_tip_amount: 0.002
        first_trade_at: 1705000000000
        last_trade_at: 1710000000000
        last_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        first_tx_hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
        timeframe: lifetime
    Decimal:
      type: number
      format: double
      description: Floating-point number serialized as JSON number.
      examples:
        - 4.108801574e-7
    InitialTrade:
      type: object
      properties:
        tx_hash:
          type:
            - string
            - 'null'
        native_spent:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        usd_spent:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        tokens_bought:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        percentage_of_supply_bought:
          type:
            - number
            - 'null'
          format: double
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

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