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

# Pool LP locks

> Lists the locks holding the requested pool's liquidity (locked LP tokens, position NFTs and custodians), with locker metadata. Only active locks (`locked`, `partially_unlocked`, `permanent`) are listed by default; pass `active=false` for every lock except withdrawn ones, and `include_withdrawn=true` or a `status` naming `withdrawn` to include withdrawn locks. Pagination is returned in the top-level response `pagination` field.

Lists the locks holding a pool's **liquidity**: locked LP tokens (`lp_token`), locked position NFTs (`position_nft`), positions held directly by a locker (`direct_position`), and launchpad custodians that hold the launch liquidity. These entries make up the pool's `lp_security` summary on [token by address](https://docs.struct.to/api-reference/token/token-by-address.md) and [liquidity pools](https://docs.struct.to/api-reference/token-market/token-liquidity-pools.md); `lp_security.lock_count` is the number of entries. Custodians have no `owner`: a permanent custodian (`status: "permanent"`) can never release the liquidity.

Each entry is one lock, or one custodian's holding: what it locks (`token_address` for token and fungible LP-token locks, `pool_id` for LP locks), its locker (`locker.id`, display `name`, `address`, `kind` and `logo` when published), what it holds (`position`), the share it holds (`share_percent`, split into `locked_percent` and `claimable_percent`), `status`, the first release `unlock_at` and, for vesting locks, the `vesting` schedule. `url` links to the lock on the locker's own site when the locker publishes per-lock pages.

* Sorted by `sort_by` (`unlock_at`, default, soonest release first; or `amount`, largest first). Locks that never unlock sort last.
* Only active locks are listed by default (`active=true`): `locked`, `partially_unlocked` and `permanent`. Pass `active=false` to also see `unlocked` locks (released but not yet withdrawn).
* Filter with `status` (comma-separated) and `kind`. A `status` list, or `include_withdrawn=true`, replaces the active filter; combining either with `active=true` is rejected. Fully withdrawn locks are hidden unless `include_withdrawn=true` or `status` includes `withdrawn`.
* Pages hold at most 100 locks (`limit`, default 50). When `pagination.has_more` is true, pass `pagination.pagination_key` back with the same scope, `sort_by` and `sort_order`. A key issued for another scope or sort is rejected.
* Times are Unix milliseconds and percents are 0-100. Addresses are lowercase hex.
* `data` is the list of entries. With `fields=short` each entry uses short keys (see [short field names](https://docs.struct.to/guides/lp-and-token-locks.md#short-field-names)); `pagination` keeps its long keys.

See [LP and token locks](https://docs.struct.to/guides/lp-and-token-locks.md) for how locks feed `lp_security` and `supply_locks`.

```bash theme={null}
curl "https://staging-api.struct.to/v1/token/pool-locks?chain=robinhood&chain_id=4663&pool_id=0xEd50bDeeA8aDC232f159486192a4157281D722ff&limit=50&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
[
  {
    "chain_id": 4663,
    "pool_id": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "locker": {
      "id": "uncx",
      "address": "0xf28704c691290547924e2129d407da36bda8ce0f",
      "name": "UNCX Network",
      "kind": "timed"
    },
    "lock_id": "15",
    "owner": "0x5b3e9f1a7c2d4e6f8a0b1c3d5e7f9a2b4c6d8e0f",
    "position": {
      "type": "position_nft",
      "venue": "v3",
      "position_id": "49102"
    },
    "share_percent": 3.1,
    "locked_percent": 0.0,
    "claimable_percent": 3.1,
    "status": "unlocked",
    "unlock_at": 1790812800000,
    "url": "https://app.uncx.network/lockers/univ3/chain/4663/address/0xed50bdeea8adc232f159486192a4157281d722ff/lock/15",
    "created_at": 1784054649000,
    "updated_at": 1790812800000
  },
  {
    "chain_id": 4663,
    "pool_id": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "locker": {
      "id": "goplus",
      "address": "0x25c9c4b56e820e0dea438b145284f02d9ca9bd52",
      "name": "GoPlus",
      "kind": "timed"
    },
    "lock_id": "96",
    "owner": "0x12a371444ccebb6b64cc35ebbc70d1d998433d51",
    "position": {
      "type": "position_nft",
      "venue": "v3",
      "position_id": "48877"
    },
    "share_percent": 12.0,
    "locked_percent": 12.0,
    "claimable_percent": 0.0,
    "status": "locked",
    "unlock_at": 1807574400000,
    "url": "https://lock.gopluslabs.io/lock/detail/v3/4663/96",
    "created_at": 1791108333000,
    "updated_at": 1791108333000
  },
  {
    "chain_id": 4663,
    "pool_id": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "locker": {
      "id": "dyor_v3",
      "address": "0x39a2cf0bdb6b404b34c87e2f9c19c4d025d875d5",
      "name": "DyorV3",
      "kind": "permanent"
    },
    "lock_id": "48213",
    "position": {
      "type": "position_nft",
      "venue": "v3",
      "position_id": "48213"
    },
    "share_percent": 82.5,
    "locked_percent": 82.5,
    "claimable_percent": 0.0,
    "status": "permanent",
    "updated_at": 1791883798000
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "ci": 4663,
    "p": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "lk": {
      "i": "uncx",
      "a": "0xf28704c691290547924e2129d407da36bda8ce0f",
      "n": "UNCX Network",
      "k": "timed"
    },
    "li": "15",
    "o": "0x5b3e9f1a7c2d4e6f8a0b1c3d5e7f9a2b4c6d8e0f",
    "pos": {
      "t": "position_nft",
      "vn": "v3",
      "pi": "49102"
    },
    "s": 3.1,
    "lp": 0.0,
    "cp": 3.1,
    "st": "unlocked",
    "ua": 1790812800000,
    "ur": "https://app.uncx.network/lockers/univ3/chain/4663/address/0xed50bdeea8adc232f159486192a4157281d722ff/lock/15",
    "ca": 1784054649000,
    "u": 1790812800000
  },
  {
    "ci": 4663,
    "p": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "lk": {
      "i": "goplus",
      "a": "0x25c9c4b56e820e0dea438b145284f02d9ca9bd52",
      "n": "GoPlus",
      "k": "timed"
    },
    "li": "96",
    "o": "0x12a371444ccebb6b64cc35ebbc70d1d998433d51",
    "pos": {
      "t": "position_nft",
      "vn": "v3",
      "pi": "48877"
    },
    "s": 12.0,
    "lp": 12.0,
    "cp": 0.0,
    "st": "locked",
    "ua": 1807574400000,
    "ur": "https://lock.gopluslabs.io/lock/detail/v3/4663/96",
    "ca": 1791108333000,
    "u": 1791108333000
  },
  {
    "ci": 4663,
    "p": "0xed50bdeea8adc232f159486192a4157281d722ff",
    "lk": {
      "i": "dyor_v3",
      "a": "0x39a2cf0bdb6b404b34c87e2f9c19c4d025d875d5",
      "n": "DyorV3",
      "k": "permanent"
    },
    "li": "48213",
    "pos": {
      "t": "position_nft",
      "vn": "v3",
      "pi": "48213"
    },
    "s": 82.5,
    "lp": 82.5,
    "cp": 0.0,
    "st": "permanent",
    "u": 1791883798000
  }
]
```


## OpenAPI

````yaml onchain-openapi.json GET /token/pool-locks
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/pool-locks:
    get:
      tags:
        - Token / Locks
      summary: Pool LP locks
      description: >-
        Lists the locks holding the requested pool's liquidity (locked LP
        tokens, position NFTs and custodians), with locker metadata. Only active
        locks (`locked`, `partially_unlocked`, `permanent`) are listed by
        default; pass `active=false` for every lock except withdrawn ones, and
        `include_withdrawn=true` or a `status` naming `withdrawn` to include
        withdrawn locks. Pagination is returned in the top-level response
        `pagination` field.
      operationId: get_token_pool_locks
      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: pool_id
          in: query
          description: Pool whose LP locks should be listed.
          required: true
          schema:
            type: string
          example: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        - name: sort_by
          in: query
          description: '`unlock_at` (default) or `amount`.'
          required: false
          schema:
            type: string
        - name: sort_order
          in: query
          description: >-
            `asc` or `desc`. Defaults to `asc` for `unlock_at` (soonest release
            first) and `desc` for `amount` (largest first).
          required: false
          schema:
            type: string
        - name: status
          in: query
          description: >-
            Comma-separated statuses: `locked`, `partially_unlocked`,
            `unlocked`, `withdrawn`, `permanent`.
          required: false
          schema:
            type: string
        - name: kind
          in: query
          description: 'Locker kind: `timed`, `vesting`, `permanent` or `custodial`.'
          required: false
          schema:
            type: string
        - name: active
          in: query
          description: >-
            Only locks still holding part of their share: `locked`,
            `partially_unlocked` and `permanent`. Defaults to true, unless
            `status` or `include_withdrawn=true` is given, which select statuses
            themselves; `active=true` together with either is rejected.
          required: false
          schema:
            type: boolean
        - name: include_withdrawn
          in: query
          description: >-
            Include fully withdrawn locks. Defaults to false. Turns the default
            `active` filter off.
          required: false
          schema:
            type: boolean
        - name: limit
          in: query
          description: Page size. Defaults to 50 and is capped at 100.
          required: false
          schema:
            type: integer
            minimum: 0
          example: 50
        - name: pagination_key
          in: query
          description: Key from the previous response pagination.pagination_key.
          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: Pool LP locks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LockEntry'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - chain_id: 4663
                      pool_id: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      locker:
                        id: uncx
                        address: '0xf28704c691290547924e2129d407da36bda8ce0f'
                        name: UNCX Network
                        kind: timed
                      lock_id: '15'
                      owner: '0x5b3e9f1a7c2d4e6f8a0b1c3d5e7f9a2b4c6d8e0f'
                      position:
                        type: position_nft
                        venue: v3
                        position_id: '49102'
                      share_percent: 3.1
                      locked_percent: 0
                      claimable_percent: 3.1
                      status: unlocked
                      unlock_at: 1790812800000
                      url: >-
                        https://app.uncx.network/lockers/univ3/chain/4663/address/0xed50bdeea8adc232f159486192a4157281d722ff/lock/15
                      created_at: 1784054649000
                      updated_at: 1790812800000
                    - chain_id: 4663
                      pool_id: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      locker:
                        id: goplus
                        address: '0x25c9c4b56e820e0dea438b145284f02d9ca9bd52'
                        name: GoPlus
                        kind: timed
                      lock_id: '96'
                      owner: '0x12a371444ccebb6b64cc35ebbc70d1d998433d51'
                      position:
                        type: position_nft
                        venue: v3
                        position_id: '48877'
                      share_percent: 12
                      locked_percent: 12
                      claimable_percent: 0
                      status: locked
                      unlock_at: 1807574400000
                      url: https://lock.gopluslabs.io/lock/detail/v3/4663/96
                      created_at: 1791108333000
                      updated_at: 1791108333000
                    - chain_id: 4663
                      pool_id: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      locker:
                        id: dyor_v3
                        address: '0x39a2cf0bdb6b404b34c87e2f9c19c4d025d875d5'
                        name: DyorV3
                        kind: permanent
                      lock_id: '48213'
                      position:
                        type: position_nft
                        venue: v3
                        position_id: '48213'
                      share_percent: 82.5
                      locked_percent: 82.5
                      claimable_percent: 0
                      status: permanent
                      updated_at: 1791883798000
                short:
                  summary: Response (Short)
                  value:
                    - ci: 4663
                      p: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      lk:
                        i: uncx
                        a: '0xf28704c691290547924e2129d407da36bda8ce0f'
                        'n': UNCX Network
                        k: timed
                      li: '15'
                      o: '0x5b3e9f1a7c2d4e6f8a0b1c3d5e7f9a2b4c6d8e0f'
                      pos:
                        t: position_nft
                        vn: v3
                        pi: '49102'
                      s: 3.1
                      lp: 0
                      cp: 3.1
                      st: unlocked
                      ua: 1790812800000
                      ur: >-
                        https://app.uncx.network/lockers/univ3/chain/4663/address/0xed50bdeea8adc232f159486192a4157281d722ff/lock/15
                      ca: 1784054649000
                      u: 1790812800000
                    - ci: 4663
                      p: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      lk:
                        i: goplus
                        a: '0x25c9c4b56e820e0dea438b145284f02d9ca9bd52'
                        'n': GoPlus
                        k: timed
                      li: '96'
                      o: '0x12a371444ccebb6b64cc35ebbc70d1d998433d51'
                      pos:
                        t: position_nft
                        vn: v3
                        pi: '48877'
                      s: 12
                      lp: 12
                      cp: 0
                      st: locked
                      ua: 1807574400000
                      ur: https://lock.gopluslabs.io/lock/detail/v3/4663/96
                      ca: 1791108333000
                      u: 1791108333000
                    - ci: 4663
                      p: '0xed50bdeea8adc232f159486192a4157281d722ff'
                      lk:
                        i: dyor_v3
                        a: '0x39a2cf0bdb6b404b34c87e2f9c19c4d025d875d5'
                        'n': DyorV3
                        k: permanent
                      li: '48213'
                      pos:
                        t: position_nft
                        vn: v3
                        pi: '48213'
                      s: 82.5
                      lp: 82.5
                      cp: 0
                      st: permanent
                      u: 1791883798000
        '400':
          description: >-
            Missing or invalid pool id, filter, sort, limit, chain, or
            pagination_key, or `active=true` with `status` or
            `include_withdrawn`.
components:
  schemas:
    LockEntry:
      type: object
      description: One lock (or one custodian's holding), as the locks endpoints list it.
      required:
        - chain_id
        - locker
        - position
        - share_percent
        - locked_percent
        - claimable_percent
        - status
      properties:
        chain_id:
          type: integer
          format: int64
        token_address:
          type:
            - string
            - 'null'
          description: >-
            The locked token (supply locks), or the pool's LP token for fungible

            LP locks; absent for position NFTs and custodians that do not name
            it.
        pool_id:
          type:
            - string
            - 'null'
          description: The pool whose liquidity is locked (LP locks only).
        locker:
          $ref: '#/components/schemas/LockerRef'
        lock_id:
          type:
            - string
            - 'null'
          description: >-
            The locker's lock / deposit / vesting id (for custodians: the pool
            id,

            position id or the locker itself).
        owner:
          type:
            - string
            - 'null'
          description: Who can withdraw (lock owner / beneficiary). Absent for custodians.
        position:
          $ref: '#/components/schemas/LockPositionRef'
        amount:
          type:
            - number
            - 'null'
          format: double
          description: |-
            Principal still locked, scaled by the token's decimals (fungible
            locks whose decimals are known).
        amount_raw:
          type:
            - string
            - 'null'
          description: Principal still locked, raw integer units.
        share_percent:
          type: number
          format: double
          description: Share of the pool / supply held by this lock (0-100).
        locked_percent:
          type: number
          format: double
          description: Share still locked.
        claimable_percent:
          type: number
          format: double
          description: Share released and withdrawable.
        status:
          type: string
          description: >-
            `locked`, `partially_unlocked`, `unlocked`, `withdrawn` or
            `permanent`.
        unlock_at:
          type:
            - integer
            - 'null'
          format: int64
          description: 'First release (ms); absent: never unlocks.'
        vesting:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/LockVesting'
        url:
          type:
            - string
            - 'null'
          description: The locker's page for this lock (`lock_url` / `lock_url_token`).
        created_at:
          type:
            - integer
            - 'null'
          format: int64
          description: When the lock was created (ms), when known.
        updated_at:
          type: integer
          format: int64
          description: Last change (ms).
      example:
        chain_id: 4663
        token_address: '0x39dbed3a2bd333467115de45665cc57f813c4571'
        locker:
          id: goplus
          address: '0xf17a08a7d41f53b24ad07eb322cbbda2ebdec04b'
          name: GoPlus
          kind: vesting
        lock_id: '1287'
        owner: '0x12a371444ccebb6b64cc35ebbc70d1d998433d51'
        position:
          type: token
        amount: 40000000
        amount_raw: '40000000000000000000000000'
        share_percent: 4
        locked_percent: 3.75
        claimable_percent: 0.25
        status: partially_unlocked
        unlock_at: 1788220800000
        vesting:
          start_at: 1788220800000
          end_at: 1803772800000
          next_step_at: 1793404800000
          cycle_seconds: 2592000
          cycle_percent: 15
          first_unlock_percent: 10
          claimed_amount: 10000000
          claimed_amount_raw: '10000000000000000000000000'
        url: https://lock.gopluslabs.io/lock/detail/token/4663/1287
        created_at: 1787908467000
        updated_at: 1790950896000
    LockerRef:
      type: object
      description: The locker contract.
      required:
        - address
        - kind
      properties:
        id:
          type:
            - string
            - 'null'
          description: >-
            Locker slug (e.g. `uncx`, `goplus`, `hoodlock`, or a launchpad such
            as

            `pons`).
        address:
          type: string
        name:
          type:
            - string
            - 'null'
          description: |-
            Display name of the locker (e.g. `UNCX Network`, `GoPlus`); for a
            launchpad's own locker, the launchpad protocol (e.g. `PonsV2`).
        kind:
          type: string
          description: '`timed`, `vesting`, `permanent` or `custodial`.'
        logo:
          type:
            - string
            - 'null'
          description: Hosted locker logo URL, when published.
      example:
        id: goplus
        address: '0xf17a08a7d41f53b24ad07eb322cbbda2ebdec04b'
        name: GoPlus
        kind: vesting
    LockPositionRef:
      type: object
      description: What the lock holds.
      required:
        - type
      properties:
        type:
          type: string
          description: '`token`, `lp_token`, `position_nft` or `direct_position`.'
        venue:
          type:
            - string
            - 'null'
          description: Pool venue for LP assets (`v2`, `v3`, `v4`, `clmm`, ...).
        position_id:
          type:
            - string
            - 'null'
          description: Position NFT id (EVM) / position mint (Solana).
      example:
        type: position_nft
        venue: v3
        position_id: '48877'
    LockVesting:
      type: object
      description: Vesting terms.
      required:
        - start_at
        - claimed_amount_raw
      properties:
        start_at:
          type: integer
          format: int64
          description: First release (ms).
        end_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Everything released (ms), when the schedule says.
        next_step_at:
          type:
            - integer
            - 'null'
          format: int64
          description: The next release step after now (ms).
        cycle_seconds:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        cycle_percent:
          type:
            - number
            - 'null'
          format: double
          description: Released per cycle (0-100).
        first_unlock_percent:
          type:
            - number
            - 'null'
          format: double
          description: Released at the start (0-100).
        claimed_amount:
          type:
            - number
            - 'null'
          format: double
          description: Already withdrawn, scaled by decimals when known.
        claimed_amount_raw:
          type: string
          description: Already withdrawn, raw integer units.
      example:
        start_at: 1788220800000
        end_at: 1803772800000
        next_step_at: 1793404800000
        cycle_seconds: 2592000
        cycle_percent: 15
        first_unlock_percent: 10
        claimed_amount: 10000000
        claimed_amount_raw: '10000000000000000000000000'
  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.