> ## 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 supply locks

> Lists the locks holding the requested token's supply (timed, vesting, permanent and custodial locks), 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 part of a token's **supply**: timed, vesting, permanent and custodial locks of the token itself. LP tokens and position NFTs are listed by [pool LP locks](https://docs.struct.to/api-reference/token-locks/pool-lp-locks.md) instead, and token locks never count toward a pool's LP lock percentage. The token's `supply_locks` summary on [token by address](https://docs.struct.to/api-reference/token/token-by-address.md) totals these locks.

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/locks?chain=robinhood&chain_id=4663&token_address=0x39dBED3a2bd333467115dE45665cC57F813C4571&limit=50&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
[
  {
    "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.0,
    "amount_raw": "40000000000000000000000000",
    "share_percent": 4.0,
    "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.0,
      "first_unlock_percent": 10.0,
      "claimed_amount": 10000000.0,
      "claimed_amount_raw": "10000000000000000000000000"
    },
    "url": "https://lock.gopluslabs.io/lock/detail/token/4663/1287",
    "created_at": 1787908467000,
    "updated_at": 1790950896000
  },
  {
    "chain_id": 4663,
    "token_address": "0x39dbed3a2bd333467115de45665cc57f813c4571",
    "locker": {
      "id": "hoodlock",
      "address": "0xd0f7d8c6e9f6d80c297bebe4f7fd1b9c8125c32f",
      "name": "HoodLock",
      "kind": "timed"
    },
    "lock_id": "342",
    "owner": "0x8d1f2c6be4a0d9e3f7b5a2c4e6f8091a3b5c7d9e",
    "position": {
      "type": "token"
    },
    "amount": 20000000.0,
    "amount_raw": "20000000000000000000000000",
    "share_percent": 2.0,
    "locked_percent": 2.0,
    "claimable_percent": 0.0,
    "status": "locked",
    "unlock_at": 1799971200000,
    "url": "https://hoodlock.tech/proof/lock/342",
    "created_at": 1789472525000,
    "updated_at": 1789472525000
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "ci": 4663,
    "ta": "0x39dbed3a2bd333467115de45665cc57f813c4571",
    "lk": {
      "i": "goplus",
      "a": "0xf17a08a7d41f53b24ad07eb322cbbda2ebdec04b",
      "n": "GoPlus",
      "k": "vesting"
    },
    "li": "1287",
    "o": "0x12a371444ccebb6b64cc35ebbc70d1d998433d51",
    "pos": {
      "t": "token"
    },
    "a": 40000000.0,
    "ar": "40000000000000000000000000",
    "s": 4.0,
    "lp": 3.75,
    "cp": 0.25,
    "st": "partially_unlocked",
    "ua": 1788220800000,
    "vs": {
      "sa": 1788220800000,
      "ea": 1803772800000,
      "ns": 1793404800000,
      "cys": 2592000,
      "cyp": 15.0,
      "fup": 10.0,
      "cl": 10000000.0,
      "clr": "10000000000000000000000000"
    },
    "ur": "https://lock.gopluslabs.io/lock/detail/token/4663/1287",
    "ca": 1787908467000,
    "u": 1790950896000
  },
  {
    "ci": 4663,
    "ta": "0x39dbed3a2bd333467115de45665cc57f813c4571",
    "lk": {
      "i": "hoodlock",
      "a": "0xd0f7d8c6e9f6d80c297bebe4f7fd1b9c8125c32f",
      "n": "HoodLock",
      "k": "timed"
    },
    "li": "342",
    "o": "0x8d1f2c6be4a0d9e3f7b5a2c4e6f8091a3b5c7d9e",
    "pos": {
      "t": "token"
    },
    "a": 20000000.0,
    "ar": "20000000000000000000000000",
    "s": 2.0,
    "lp": 2.0,
    "cp": 0.0,
    "st": "locked",
    "ua": 1799971200000,
    "ur": "https://hoodlock.tech/proof/lock/342",
    "ca": 1789472525000,
    "u": 1789472525000
  }
]
```


## OpenAPI

````yaml onchain-openapi.json GET /token/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/locks:
    get:
      tags:
        - Token / Locks
      summary: Token supply locks
      description: >-
        Lists the locks holding the requested token's supply (timed, vesting,
        permanent and custodial locks), 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_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: token_address
          in: query
          description: Token whose supply locks should be listed.
          required: true
          schema:
            type: string
          example: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        - 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: Token supply locks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LockEntry'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - 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
                    - chain_id: 4663
                      token_address: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                      locker:
                        id: hoodlock
                        address: '0xd0f7d8c6e9f6d80c297bebe4f7fd1b9c8125c32f'
                        name: HoodLock
                        kind: timed
                      lock_id: '342'
                      owner: '0x8d1f2c6be4a0d9e3f7b5a2c4e6f8091a3b5c7d9e'
                      position:
                        type: token
                      amount: 20000000
                      amount_raw: '20000000000000000000000000'
                      share_percent: 2
                      locked_percent: 2
                      claimable_percent: 0
                      status: locked
                      unlock_at: 1799971200000
                      url: https://hoodlock.tech/proof/lock/342
                      created_at: 1789472525000
                      updated_at: 1789472525000
                short:
                  summary: Response (Short)
                  value:
                    - ci: 4663
                      ta: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                      lk:
                        i: goplus
                        a: '0xf17a08a7d41f53b24ad07eb322cbbda2ebdec04b'
                        'n': GoPlus
                        k: vesting
                      li: '1287'
                      o: '0x12a371444ccebb6b64cc35ebbc70d1d998433d51'
                      pos:
                        t: token
                      a: 40000000
                      ar: '40000000000000000000000000'
                      s: 4
                      lp: 3.75
                      cp: 0.25
                      st: partially_unlocked
                      ua: 1788220800000
                      vs:
                        sa: 1788220800000
                        ea: 1803772800000
                        ns: 1793404800000
                        cys: 2592000
                        cyp: 15
                        fup: 10
                        cl: 10000000
                        clr: '10000000000000000000000000'
                      ur: https://lock.gopluslabs.io/lock/detail/token/4663/1287
                      ca: 1787908467000
                      u: 1790950896000
                    - ci: 4663
                      ta: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                      lk:
                        i: hoodlock
                        a: '0xd0f7d8c6e9f6d80c297bebe4f7fd1b9c8125c32f'
                        'n': HoodLock
                        k: timed
                      li: '342'
                      o: '0x8d1f2c6be4a0d9e3f7b5a2c4e6f8091a3b5c7d9e'
                      pos:
                        t: token
                      a: 20000000
                      ar: '20000000000000000000000000'
                      s: 2
                      lp: 2
                      cp: 0
                      st: locked
                      ua: 1799971200000
                      ur: https://hoodlock.tech/proof/lock/342
                      ca: 1789472525000
                      u: 1789472525000
        '400':
          description: >-
            Missing or invalid token address, 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.