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

# Batch Uniswap claimable fees

> Returns currently claimable token fees for multiple Uniswap position NFTs. Batches allow up to 200 token IDs.

```bash theme={null}
curl -X POST "https://staging-api.struct.to/v1/uniswap/positions/claimable-fees/batch?chain=base&chain_id=8453&protocol=v4&fields=short" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token_ids":["42"]}'
```

```json Response (Long) theme={null}
{
  "count": 1,
  "claimable_count": 1,
  "results": [
    {
      "has_claimable_fees": true,
      "fees": {
        "currency0": "0x0000000000000000000000000000000000000000",
        "currency1": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "currency0_decimals": 18,
        "currency1_decimals": 6,
        "currency0_price_usd": "2474.05",
        "currency1_price_usd": "1.00",
        "amount0_raw": "1200000000000000",
        "amount1_raw": "2800000",
        "amount0": "0.0012",
        "amount1": "2.8",
        "amount0_usd": "2.97",
        "amount1_usd": "2.8",
        "amounts_usd": "5.77"
      }
    }
  ]
}
```

```jsonc Response (Short) theme={null}
{
  "c": 1,
  "cc": 1,
  "r": [
    {
      "hf": true,
      "f": {
        "c0": "0x0000000000000000000000000000000000000000",
        "c1": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "cd0": 18,
        "cd1": 6,
        "p0": "2474.05",
        "p1": "1.00",
        "a0r": "1200000000000000",
        "a1r": "2800000",
        "a0": "0.0012",
        "a1": "2.8",
        "a0u": "2.97",
        "a1u": "2.8",
        "au": "5.77"
      }
    }
  ]
}
```


## OpenAPI

````yaml onchain-openapi.json POST /uniswap/positions/claimable-fees/batch
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:
  /uniswap/positions/claimable-fees/batch:
    post:
      tags:
        - Uniswap
      summary: Batch Uniswap claimable fees
      description: >-
        Returns currently claimable token fees for multiple Uniswap position
        NFTs. Batches allow up to 200 token IDs.
      operationId: post_uniswap_position_claimable_fees_batch
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: base
        - 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: 8453
        - name: protocol
          in: query
          description: >-
            Uniswap version: v3 or v4. Defaults to v4; specify v3 for V3
            position IDs.
          required: false
          schema:
            $ref: '#/components/schemas/UniswapProtocol'
          example: v4
        - 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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V4ClaimableFeesBatchRequest'
            example:
              token_ids:
                - '42'
        required: true
      responses:
        '200':
          description: Batch claimable Uniswap position fees
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V4ClaimableFeesBatchResponse'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    count: 1
                    claimable_count: 1
                    results:
                      - has_claimable_fees: true
                        fees:
                          currency0: '0x0000000000000000000000000000000000000000'
                          currency1: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                          currency0_decimals: 18
                          currency1_decimals: 6
                          currency0_price_usd: '2474.05'
                          currency1_price_usd: '1.00'
                          amount0_raw: '1200000000000000'
                          amount1_raw: '2800000'
                          amount0: '0.0012'
                          amount1: '2.8'
                          amount0_usd: '2.97'
                          amount1_usd: '2.8'
                          amounts_usd: '5.77'
                short:
                  summary: Response (Short)
                  value:
                    c: 1
                    cc: 1
                    r:
                      - hf: true
                        f:
                          c0: '0x0000000000000000000000000000000000000000'
                          c1: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                          cd0: 18
                          cd1: 6
                          p0: '2474.05'
                          p1: '1.00'
                          a0r: '1200000000000000'
                          a1r: '2800000'
                          a0: '0.0012'
                          a1: '2.8'
                          a0u: '2.97'
                          a1u: '2.8'
                          au: '5.77'
        '400':
          description: Validation error, usually invalid chain or request body.
        '503':
          description: Uniswap position data is unavailable for the requested chain.
components:
  schemas:
    UniswapProtocol:
      type: string
      description: 'Uniswap version: v3 or v4.'
      enum:
        - v3
        - v4
    V4ClaimableFeesBatchRequest:
      type: object
      required:
        - token_ids
      properties:
        token_ids:
          type: array
          items:
            type: string
          description: Uniswap position NFT token IDs. Maximum 200.
          maxItems: 200
          minItems: 1
      additionalProperties: false
    V4ClaimableFeesBatchResponse:
      type: object
      required:
        - count
        - claimable_count
        - results
      properties:
        count:
          type: integer
          minimum: 0
        claimable_count:
          type: integer
          minimum: 0
        results:
          type: array
          items:
            $ref: '#/components/schemas/V4ClaimableFeesBatchResult'
    V4ClaimableFeesBatchResult:
      type: object
      required:
        - has_claimable_fees
      properties:
        has_claimable_fees:
          type: boolean
        fees:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/V4ClaimableFeesData'
        error:
          type:
            - string
            - 'null'
    V4ClaimableFeesData:
      type: object
      required:
        - currency0
        - currency1
        - amount0_raw
        - amount1_raw
      properties:
        currency0:
          type: string
        currency1:
          type: string
        currency0_decimals:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        currency1_decimals:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        currency0_price_usd:
          type:
            - string
            - 'null'
        currency1_price_usd:
          type:
            - string
            - 'null'
        amount0_raw:
          type: string
        amount1_raw:
          type: string
        amount0:
          type:
            - string
            - 'null'
        amount1:
          type:
            - string
            - 'null'
        amount0_usd:
          type:
            - string
            - 'null'
        amount1_usd:
          type:
            - string
            - 'null'
        amounts_usd:
          type:
            - string
            - 'null'
  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.