# Arweave Bot 监控

### Arweave Bot 监控是什么？

Arweave 是一条去中心化存储链，用户通过 Arweave 上的 tags 对存储在其上的内容进行监听。

[了解 Arweave？](https://www.arweave.org/)

### Arweave Bot 典型场景

1. Mirror 文章监控
2. 其他存储在 Arweave 轻量数据监控

注意：

Arweave 的用户可能给链上存储大型文件，比如 PDF，mp4 格式等，目前 ChainBot 平台并不支持对大文件类型的内容解析。

**支持的数据源**

| 数据源     | 类型       | 稳定性 |
| ------- | -------- | --- |
| Arweave | on chain | 极高  |

### 如何配置 Arweave Bot 监控？

登录 ChainBot 平台后，右上角 "Create Bot" -> "Arweave Monitor"。

<figure><img src="/files/qvwuzaWnDBO8GuGQOBQp" alt=""><figcaption><p>Create a Arweave Bot</p></figcaption></figure>

#### Info 说明

| 字段名  | 说明               | 是否必填 |
| ---- | ---------------- | ---- |
| Name | Bot 监控名          | 是    |
| Tags | Bot 监控 tags，利于搜索 | 是    |

#### Tags Conditions 说明

<table><thead><tr><th>参数</th><th width="233.33333333333331">Symbol</th><th>说明</th></tr></thead><tbody><tr><td>App-Name</td><td>==, in</td><td>Arweave 用户在 Arweave 上标记的应用名，比如 Mirror 会打 "mirrorxyz" 的 tag</td></tr><tr><td>Contributor</td><td>==, in</td><td>Arweave 上内容贡献者，比如 Mirror 的规则为文章撰稿人</td></tr><tr><td>Original-Content-Digest</td><td>empty, notEmpty</td><td>当 Arweave 上的内容被更新时，初次推送内容的 Digest 会被标记为 Original-Content-Digest</td></tr></tbody></table>

#### Data Conditions 说明

用户根据自身条件过滤需要的存储在 Arweave 上内容实体的内容。以 Mirror 为例，假设要监控 Aptos 关键词的文章，则应该填写为：

<figure><img src="/files/je0zzw59s1cpAvQoKOwu" alt=""><figcaption><p>Conditions Demo</p></figcaption></figure>

#### 模板变量说明

<table><thead><tr><th width="340">变量</th><th>说明</th></tr></thead><tbody><tr><td>$data.{}</td><td>从 Arweave 具体内容取到的 data 信息，动态解析</td></tr><tr><td>$tags.{}</td><td>从 Arweave 解析的任意 tag 的值，动态解析</td></tr><tr><td>$tx.id</td><td>Arweave 上的 transaction id</td></tr><tr><td>$tx.owner.address</td><td>Arweave 上的交易发起者</td></tr><tr><td>$block.id</td><td>Arweave 上产生数据的 Block hash</td></tr><tr><td>$block.timestamp</td><td>Arweave 上区块产生的时间戳</td></tr><tr><td>$block.height</td><td>Arweave 上区块产生的高度</td></tr></tbody></table>

#### 默认告警模板

```
[{$bot.name}]
{$data.authorship.contributor} published new article
Title: {$data.content.title}
View: https://mirror.xyz/{$data.authorship.contributor}/{$tags.original_content_digest}
Time: {formatTime($data.content.timestamp)}
```

[了解告警通知模板？](/zh/advanced-features/alarm-notification-template.md)

#### 通知消息示例

> \[ Aptos Mirror 监控 ]
>
> 0x7620D7991a8469ef7F26B5Da7952e27C16074367 publish new article aptos1021
>
> View: <https://mirror.xyz/0x7620D7991a8469ef7F26B5Da7952e27C16074367/HvyIBgIbHud_9oyx6_MSyuFFWONKFeqtRdUniZmX7lE>
>
> Time: 1669643104
>
> Created By [ChainBot.io](https://www.chainbot.io)

#### Arweave Bot 监控案例

[Arweave Bot 案例](/zh/bot-case/arweave-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/zh/basic-usage/bots/arwwave-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.
