# Locks

You can confirm token locks by calling following functions on the feeOwner Contract (once a token has migrated):

```solidity
function locks(address token, uint256 id) public view returns (LockNativeInfo)
```

Where LockNativeInfo has following entries:

```solidity
struct LockInfo {
        uint256 amount;
        uint256 unlockTime;       
    }
```

Where you will get a return like for example

```
0:
uint256: amount 1000000000000000000000000
1:
uint256: unlockTime 1771143648
```

where amount is the amount of tokens locked in this ID, unlockTime is the unlockTime in Unix format, and tokenOwner the current owner of this lock.

To see how many tokens in total are currently locked call

```solidity
function lockedTokensTotal(address token) public view returns (uint256)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lfg-club.gitbook.io/lfgclub/bonding-curve/locks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
