# 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="/files/SHPPDI797hZomYq0Mf9y" 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 Example](/bot-case/block-bot-demo.md)


---

# 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.chainbot.io/basic-usage/bots/block-bot.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.
