# Block Bot Monitoring

### What is Block Bot Monitoring?

Block Bot Monitoring is used to track the gas consumption of blocks in the target chain, thereby allowing for the prediction of possible situations on the chain.

### Typical Scenarios for Block Bot Monitoring

1. Monitoring the value of block Gas Fees
2. Monitoring the proportion of block gas consumption relative to the maximum block limit
3. Monitoring the block miner

**Supported Data Sources**

| Data Source | Type     | Stability |
| ----------- | -------- | --------- |
| Ethereum    | on chain | Very High |

### How to Configure Block Bot Monitoring?

After logging into the ChainBot platform, click "Create Bot" -> "Block Monitor" in the top right corner.

<figure><img src="https://3957434529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fytm2ftx9VGhS1jFp37FQ%2Fuploads%2Fgit-blob-20b68ec0e16fff44fb8e7b04ae8a6593fdd10214%2Fcreate-block-monitor.png?alt=media" alt=""><figcaption><p>Create a Block Bot</p></figcaption></figure>

#### Info Description

| Field Name | Description                    | Required |
| ---------- | ------------------------------ | -------- |
| Name       | Bot Monitoring Name            | Yes      |
| Chain      | User-selected chain            | Yes      |
| Tags       | Bot monitoring tags for search | Yes      |

#### Conditions Description

| Parameter      | Symbol           | Description                            |
| -------------- | ---------------- | -------------------------------------- |
| Miner          | ==               | Monitor blocks mined by specific miner |
| BlockNumber    | >, >=, <, <=, == | Block height                           |
| BaseFeePerGas  | >, >=, <, <=, == | Block Gas Fee                          |
| GasUsedPercent | >, >=, <, <=, == | Proportion of gas used in the block    |

#### Template Variable Description

| Variable              | Description                         |
| --------------------- | ----------------------------------- |
| $block.number         | Block height                        |
| $block.baseFeePerGas  | Block gas fee                       |
| $block.gasUsedPercent | Percentage of gas used in the block |
| $block.miner          | Miner address                       |
| $block.time           | Block creation time                 |

#### Default Alert Template

```
[{$bot.name}]
View: https://etherscan.io/block/{$block.height}
Time: {$alert.time}
```

[Learn more about the alert notification template?](https://github.com/ChainbotAI/doc-en/blob/master/advanced-features/alarm-notification-template/README.md)

#### Notification Message Example

> \[ Ethereum Base Fee monitor ]\
> BaseFee: 10.35 Gwei\
> View: <https://etherscan.io/block/16081313>\
> Time: 2022-11-30T11:28:11+04:00\
> Created By [ChainBot.io](https://www.chainbot.io)

#### Block Bot Monitoring Case

[block-bot-demo](https://docs.chainbot.io/bot-case/block-bot-demo "mention")
