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

# Uniswap wallet claimable fees

> Returns claimable Uniswap fees for a wallet, grouped by token.

```bash theme={null}
curl "https://staging-api.struct.to/v1/uniswap/wallets/{wallet_address}/claimable-fees?chain=base&chain_id=8453&protocol=v4&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "wallet_address": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
  "pool_id": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "position_count": 1,
  "claimable_position_count": 1,
  "totals": {
    "0": "1200000000000000",
    "1": "2800000"
  },
  "totals_decimal": {
    "0": "0.0012",
    "1": "2.8"
  },
  "totals_usd": {
    "0": "2.97",
    "1": "2.8"
  },
  "total_usd": "5.77"
}
```

```jsonc Response (Short) theme={null}
{
  "w": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
  "p": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "pc": 1,
  "cpc": 1,
  "t": {
    "0": "1200000000000000",
    "1": "2800000"
  },
  "td": {
    "0": "0.0012",
    "1": "2.8"
  },
  "tu": {
    "0": "2.97",
    "1": "2.8"
  },
  "u": "5.77"
}
```


## OpenAPI

````yaml onchain-openapi.json GET /uniswap/wallets/{wallet_address}/claimable-fees
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/wallets/{wallet_address}/claimable-fees:
    get:
      tags:
        - Uniswap
      summary: Uniswap wallet claimable fees
      description: Returns claimable Uniswap fees for a wallet, grouped by token.
      operationId: get_uniswap_wallet_claimable_fees
      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: wallet_address
          in: path
          description: EVM wallet address.
          required: true
          schema:
            type: string
        - name: protocol
          in: query
          description: 'Uniswap version: v3 or v4. Omit to query both versions.'
          required: false
          schema:
            $ref: '#/components/schemas/UniswapProtocol'
          example: v4
        - name: pool_id
          in: query
          description: 'Pool identifier: a Uniswap V3 pool address or a 32-byte V4 pool id.'
          required: false
          schema:
            type: string
        - 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: Claimable Uniswap fees for a wallet
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V4WalletClaimableFeesResponse'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    wallet_address: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                    pool_id: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    position_count: 1
                    claimable_position_count: 1
                    totals:
                      '0': '1200000000000000'
                      '1': '2800000'
                    totals_decimal:
                      '0': '0.0012'
                      '1': '2.8'
                    totals_usd:
                      '0': '2.97'
                      '1': '2.8'
                    total_usd: '5.77'
                short:
                  summary: Response (Short)
                  value:
                    w: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                    p: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    pc: 1
                    cpc: 1
                    t:
                      '0': '1200000000000000'
                      '1': '2800000'
                    td:
                      '0': '0.0012'
                      '1': '2.8'
                    tu:
                      '0': '2.97'
                      '1': '2.8'
                    u: '5.77'
        '400':
          description: Validation error, usually invalid chain, wallet_address, or pool_id.
        '503':
          description: Uniswap wallet fee data is unavailable for the requested chain.
components:
  schemas:
    UniswapProtocol:
      type: string
      description: 'Uniswap version: v3 or v4.'
      enum:
        - v3
        - v4
    V4WalletClaimableFeesResponse:
      type: object
      required:
        - wallet_address
        - position_count
        - claimable_position_count
        - totals
        - totals_decimal
        - totals_usd
      properties:
        wallet_address:
          type: string
        pool_id:
          type:
            - string
            - 'null'
        position_count:
          type: integer
          minimum: 0
        claimable_position_count:
          type: integer
          minimum: 0
        totals:
          type: object
          additionalProperties:
            type: string
          propertyNames:
            type: string
        totals_decimal:
          type: object
          additionalProperties:
            type: string
          propertyNames:
            type: string
        totals_usd:
          type: object
          additionalProperties:
            type: string
          propertyNames:
            type: string
        total_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.