# Contract Interactions

<figure><img src="https://1532932898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDrg7tTMIIOxFzo5DXJ9F%2Fuploads%2FeJJQlf75OaF8FPyxU44Q%2FalertSet.png?alt=media&#x26;token=fd50e076-d1f3-41cc-9c26-120c3533dee6" alt=""><figcaption></figcaption></figure>

### Setup: Create new alert

* Contract Address - Any **contract address** on the ethereum chain
* Description - User's own information about the contract.&#x20;
* Custom Settings
* Discord Webhook URL or Telegram Chat ID - Where user receives the alerts
* Discord Ping Role - Adds a role ping to the alert. Must be the UID of the role.&#x20;

### Alert Modes

* User Calls - Monitor any transactions to a contract by a set wallet address
* Block Mints - Get a summary of mints in a block
* Block Secondary - Get a summary of sales in a block

## Custom Settings

* filter - Function name of verified contract or function hex to filter
  * setPaused or 0xf2d12b12 or \*
* owner - Wallet address to monitor, default value picked up from owner() function
  * wallet address or \*
* min mints - Minimal amount of mint transactions in a block to send alert
  * 0 or positive integer
* sale type - Get alerted only if specific type of sale happens
  * 0 - all
  * 1 - orders
  * 2 - offers
* min sales - Minimum amount of sales of chosen type
  * 0 or positive integer
* min volume - Minimum volume of chosen type of sale
  * 0 or positive float(0.2, 0.35, 1, 5)

### Telegram Setup

Create a Telegram Group

Invite 3gm bots (all 5)

* @ThreeGMAlerts1Bot
* @ThreeGMAlerts2Bot
* @ThreeGMAlerts3Bot
* @ThreeGMAlerts4Bot
* @ThreeGMAlerts5Bot

Get Telegram Chat ID by inviting bot @RawDataBot <https://www.alphr.com/find-chat-id-telegram/>

* get ID from&#x20;

```
    "chat": {
        "id": -907304945,
```

* Use the ID in the Discord Alerts setup
* remove @RawDataBot from your group

<div><figure><img src="https://1532932898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDrg7tTMIIOxFzo5DXJ9F%2Fuploads%2FzmFxNwzHg27R2NxAiQw7%2FgemMints.png?alt=media&#x26;token=d50b40af-32fd-4f4c-8e8b-32d432699465" alt=""><figcaption></figcaption></figure> <figure><img src="https://1532932898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDrg7tTMIIOxFzo5DXJ9F%2Fuploads%2FbCrCBf4rmHjXf1uczgWB%2FgemSales.png?alt=media&#x26;token=a710dfb4-be9a-4328-bf06-48a9808cf026" alt=""><figcaption></figcaption></figure> <figure><img src="https://1532932898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDrg7tTMIIOxFzo5DXJ9F%2Fuploads%2FNfVIbwCAV7Jqr2cCLTGC%2FuserCall.png?alt=media&#x26;token=04becaf2-c1ef-4e38-88e0-5b93fe0e2a4c" alt=""><figcaption></figcaption></figure></div>
