# Add smart contracts

Whether you want to stream data for specific contract events and functions to your apps, or use smart contract event emissions and function calls to trigger alerts and automated workflows, you'll need to add the contracts to Dispatch.

There are 2 ways to add smart contracts to Dispatch:

1. Add contract during Patch creation ([Patch Builder](https://dispatch.esprezzo.io/patches/create))
2. Add contract on the [Contracts](https://dispatch.esprezzo.io/contracts/overview) page

{% hint style="info" %}
Currently Dispatch supports smart contracts on Ethereum, Polygon, Arbitrum One, Base, and Optimism.

Request support for other networks [here](https://info.esprezzo.io/dispatch-network-request).
{% endhint %}

See how to add contracts during Patch creation in the [contract activity monitor example](https://docs.esprezzo.io/introduction/contract-activity-monitor-example#step-2-set-the-trigger-conditions).

## Adding a smart contract from the Contracts page

Navigate to the [Contracts](https://dispatch.esprezzo.io/contracts/overview) page.

Click the "Add contract" button:

<figure><img src="https://2361914853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvqfEygZQWRoaDpS8wmp3%2Fuploads%2FjG0AJNu9rNef8eyQq0le%2FContracts%20-%20add%20a%20smart%20contract%20to%20Esprezzo%20Dispatch.gif?alt=media&#x26;token=04e65c24-6f8c-41ce-8afa-dc65c5e7ed79" alt=""><figcaption></figcaption></figure>

In the modal, add the

1. **Network**: the network that the smart contract is on
2. **Contract address**: the address of the smart contract you want alerts/automations from
3. **Contract nickname**: an easy-to-remember, descriptive name for the contract that will distinguish it from other contracts you might add later

Click the "Add contract" button.

### Adding unverified contracts

If the contract you want to monitor is unverified, there are a few extra steps.

Namely, you'll need to provide the [contract ABI](https://dev.to/sadiqful/understanding-smart-contract-abi-31km) in JSON format.

<figure><img src="https://2361914853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvqfEygZQWRoaDpS8wmp3%2Fuploads%2F94ZtqW1x804deFyv4sPi%2Fimage.png?alt=media&#x26;token=6450ed1f-6c92-48b4-8dbf-4a28b385c9a1" alt="How to add an unverified contract to Dispatch so you can get alerts from it" width="563"><figcaption></figcaption></figure>

#### Proxy contracts

If the contract you're adding is a proxy, Dispatch provides the option to add the associated implementation contract at the same time, so you can monitor activity in both the proxy and implementation contracts.

To monitor activity in both the proxy and implementation contracts, you'll need to provide the ABIs for both contracts.

<figure><img src="https://2361914853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvqfEygZQWRoaDpS8wmp3%2Fuploads%2FzUK43g4BG1TFGmljkz8c%2Fimage.png?alt=media&#x26;token=678c324b-1e17-415d-ad52-63491060d68f" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
At this time Dispatch does not auto-update monitoring of new implementation contracts when proxy contracts are updated with new implementation contract addresses.
{% endhint %}

Once you add a contract, you should see it in the top row of the table in [Contracts Overview](https://dispatch.esprezzo.io/contracts/overview).
