> For the complete documentation index, see [llms.txt](https://docs.chainbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainbot.io/zh/basic-usage/contracts-mange/add-contract.md).

# 添加合约

### 如何添加合约

1. 登录后，在用户界面，将会在左侧看到 “ Custom Contract ” 的选项，点击该选项卡，进入配置页面。
2. 点击右上角的 “Add Custom Contract” 的按钮并填写智能合约相关信息。

<figure><img src="/files/SXtINZKX71edbQ2EKICA" alt=""><figcaption><p>Add Contract</p></figcaption></figure>

<figure><img src="/files/bpJVMq7qIbIYYLLQE3Y4" alt=""><figcaption><p>Add Contract</p></figcaption></figure>

合约字段说明

<table><thead><tr><th width="208">字段</th><th>说明</th><th>示例</th></tr></thead><tbody><tr><td>Name</td><td>自定义合约名</td><td>CurveStablecoin3pool</td></tr><tr><td>Chain</td><td>选择 ChainBot 平台已支持的链</td><td>Ethereum,BSC 等等</td></tr><tr><td>Address</td><td>合约地址</td><td>0xdAC17F958D2ee523a2206206994597C13D831ec7</td></tr><tr><td>ABI</td><td>合约相关 ABI 信息，为 json 串</td><td>[]</td></tr><tr><td>Functions / Events</td><td>合约定义的 function 和 event</td><td>function getOwner();<br>event Issue(uint amount);</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.chainbot.io/zh/basic-usage/contracts-mange/add-contract.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
