# 添加合约

### 如何添加合约

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

<figure><img src="https://269759277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoG8PqN7GJCejgjqG74o%2Fuploads%2FnGVL0IzHTHq1x8RDpdlE%2Fcontract-add.png?alt=media&#x26;token=819dc27a-b99e-4b47-aef2-d053a377f671" alt=""><figcaption><p>Add Contract</p></figcaption></figure>

<figure><img src="https://269759277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoG8PqN7GJCejgjqG74o%2Fuploads%2Fe7JECefVFepL34Hlno0C%2Fcontract-edit.png?alt=media&#x26;token=6bc09680-9034-4e1e-9773-1351f17107da" 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>
