# 如何查询池子(LP)地址

如何查询自己的ERC20代币的池子(LP)的地址，我们添加流动性后，往往需要去锁池子，如何快速的通过一下方法查询到流动性池子的合约地址。

## 方法1:通过添加流动性记录查询

1. 通过区块链浏览器查询添加流动性交易记录
2. 例如添加流动性的交易Hash 如（ <https://testnet.bscscan.com/tx/0xdfd9412767cba1f16051850abd4d6685deb9d655f308624f8a65a0891ed87077>）
3. 例子中添加了5个BNB和1,000,000,000,000 个Doge代币，加入到Pancake交易所中。
4. 最终拿到了2,236,067.977....个LP 令牌余额。

![add-liquidity](/files/wwOrFTT1aAoxDNxwWD9b)

5. 点击Pancake LPs 令牌合约地址。
6. 进入Pancake LPs 令牌合约明细页面（如下图）

![add-liquidity](/files/7KqdEqEYbEF1LJzwXacP)

7. 右上角红色部分地址就是LP的令牌合约地址

## 方法2:通过合约地址查询

1. 通过区块链浏览器输入合约地址查询，`Contract` 和 `Read Contract` 位置

![add-liquidity](/files/wge1g4OoljabOOoJwdRc)

2. 搜索查找 `uniswapPair` 关键字

![add-liquidity](/files/Kdaa722AazhBOnDwL4gd)

提示：通过合约查询到 uniswapPair 的字段地址，获取到 LP地址

## 方法3:通过Token管理员页面查询

1. 打开对应发币的页面，进入Token管理员（本方法适合未丢权限合约）
2. 输入合约地址进入管理员页面

![add-liquidity](/files/1RbitBD9RTXqdf2bgbnp)

3. 查看LP地址

![add-liquidity](/files/QWROYem8rob27l1cZ8xt)

提示：此方法查询的是 BNB-XXX交易对的 LP地址 如果您添加的流动性不是BNB交易对，请使用第一种方式查询你的LP地址

## 方法4:通过合约安全检测功能

1. 打开合约安全检测功能地址：<https://tokentools.app/audit/contract>
2. 选择支持的链，输入合约地址进行安全检测。

![add-liquidity](/files/4YqP6TpmhHCahUGY1uVJ)

3. 通过池子大小检测信息获取到池子地址

![add-liquidity](/files/2TBEOZVe4nbMVren3wTK)


---

# 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://docs.tokentools.app/common-problem/how-to-find-liquidity.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.
