Lock check
Last updated
GET
https://www.vestream.io/api/v1/token/{chainId}/{address}/locks?cancelable=trueThe lock check before you buy: every vesting and lock schedule for one token, largest first, with what's still locked, start, cliff and end, the next unlock, and whether the sender can cancel it. summary.cancelable_locked is how much could be pulled back.
Parameters
| Name | Type | Description |
|---|---|---|
| chainIdrequired | path · integer | Chain ID. Solana is 101. See GET /chains. |
| addressrequired | path · string | Token contract address (EVM, case-insensitive) or Solana mint (case-sensitive). |
| active_only | query · boolean | false includes finished schedules. Default: true. |
| cancelable | query · boolean | true returns only schedules the sender can cancel. |
| limit | query · integer | Maximum rows to return. Default 100, maximum 500. Default: 100. |
| offset | query · integer | Rows to skip, for paging. Default: 0. |
cancelable is null where the protocol doesn't report it; summary.cancelable_unknown counts those schedules.