> 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/basic-usage/contracts-mange/add-contract.md).

# Add Contract

### How to Add a Contract

1. After logging in, you will see the "Custom Contract" option on the left in the user interface. Click on this tab to enter the configuration page.
2. Click the "Add Custom Contract" button in the top right corner and fill in the relevant information for the smart contract.

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

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

Explanation of contract fields

<table><thead><tr><th width="208">Field</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>Name</td><td>Custom contract name</td><td>CurveStablecoin3pool</td></tr><tr><td>Chain</td><td>Select the chain supported by the ChainBot platform</td><td>Ethereum, BSC, etc.</td></tr><tr><td>Address</td><td>Contract address</td><td>0xdAC17F958D2ee523a2206206994597C13D831ec7</td></tr><tr><td>ABI</td><td>Contract-related ABI information in JSON format</td><td>[]</td></tr><tr><td>Functions / Events</td><td>Functions and events defined by the contract</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/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.
