> 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>
