# Viewing contract functions and events

Once you have created at least one Patch with the **Smart contract activity** Trigger, you will receive alerts or webhook payloads, depending on the Action you selected in [Patch Builder](https://dispatch.esprezzo.io/patches/create).

If you selected Dispatch Monitor as your Action, you will see events on the [Dispatch Monitor](https://dispatch.esprezzo.io/monitor) page.

### Contracts History

The easiest way to inspect activity for your contracts is to go to [Contracts History](https://dispatch.esprezzo.io/contracts/history).

<figure><img src="/files/zhcPxzoW48IuHUSWCqjQ" alt="Smart contract activity history table in Esprezzo Dispatch" width="563"><figcaption><p>Smart contract history: A stream of all the activity in smart contracts you're monitoring</p></figcaption></figure>

The default view displays all event emissions and functions calls in contracts you've added to Dispatch.

Clicking on any row in the table will expand the row to show you all the event details, including the option to see and copy the event log JSON.

To see only activity from certain contract(s), you can

* Search by contract name
* Filter the table to show only contracts on certain networks
* Filter the table to show only certain contract types
* Any combination of the above

Note that if you are monitoring activity from Dispatch "system" contracts (i.e. pre-existing contracts you did not add to Dispatch), those event emissions and function calls are not displayed in Contracts History, but can be found in [Patch History](https://dispatch.esprezzo.io/patches/history).

### Patch History

To view the history of all Patches in your account (i.e. if you are monitoring wallets for balance changes in addition to smart contract activity), go to [Patch History](https://dispatch.esprezzo.io/patches/history).

There you can filter the table to show only contract event emissions by selecting the "Smart contract activity" option from the Trigger filter.


---

# Agent Instructions: 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:

```
GET https://docs.esprezzo.io/smart-contract-activity/viewing-contract-functions-and-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
