Returns liquidity locks for a given pair or for all pairs for a given token.
This endpoint is available with Codex Growth and Enterprise Plans
Endpoint: liquidityLocks
Method: POST
Arguments
Note: one of either pairAddress or tokenAddress is required.
Response
| Name | Type | Description |
|---|---|---|
| cursor | String | A cursor for use in pagination. |
| items | ! | A list of liquidity locks. |
| Name | Type | Description |
|---|---|---|
| createdAt | Int! | The unix timestamp for when the lock was created. |
| initialAmountToken0 | String! | The inital amount of token0 locked. |
| initialAmountToken1 | String! | The inital amount of token1 locked. |
| liquidityAmount | String! | The amount of liquidity locked. |
| liquidityNftData | LiquidityNftData | If the liquidity position is represented by an NFT, this will contain the NFT data. |
| liquidityProtocolV2 | String! | The protocol that created the pair |
| lockerAddress | String! | The address of the locker contract. |
| lockProtocol | LiquidityLockProtocol! | The protocol with which the liquidity is locked. |
| networkId | Int! | The network ID the pair is deployed on. |
| ownerAddress | String! | The wallet address of the owner. |
| pairAddress | String! | The pair address. |
| unlockAt | Int | The unix timestamp for when the lock expires. |
Ask questions, share what you're working on and request new features 👬👭