> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenderly.co/llms.txt
> Use this file to discover all available pages before exploring further.

# 管理 Web3 Actions 生命周期

> 使用 Tenderly Dashboard 操作您的 Web3 Actions。了解如何停止、升级或手动运行 Web3 Action。

在本指南中，您将学习如何：

* 手动停止 Web3 Actions 的执行。
* 无停机地升级和编辑已部署的 Web3 Actions。
* 手动执行 Web3 Actions。

### 停止 Web3 Action

Web3 Actions 会一直运行，直到您手动停止其执行。要停止 Web3 Action，前往 Web3 Actions 概览页面，您将看到所有 Web3 Actions 的列表。点击您要停止的那个。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-1.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=e75d8fc045cd7fc4d410b934c928331e" alt="打开您想停止的 Web3 Action" width="3276" height="2174" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-1.webp" />

  <figcaption>
    <p>打开您想停止的 Web3 Action</p>
  </figcaption>
</figure>

从右上角的页面菜单中，点击 **Stop Action** 按钮。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-2.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=45546b244554c77d27e5c663451eeb4c" alt="点击 Stop Action 按钮" width="1102" height="214" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-2.webp" />

  <figcaption>
    <p>点击 Stop Action 按钮</p>
  </figcaption>
</figure>

系统会提示您确认操作。点击 **Stop Action** 按钮进行确认。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-3.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=160d7360c448e1a5d093e0fe343559a8" alt="确认停止 Web3 Action" width="3364" height="2262" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-3.webp" />

  <figcaption>
    <p>确认停止 Web3 Action </p>
  </figcaption>
</figure>

### 重新启动已停止的 Web3 Action

仍然在已停止的 Web3 Action 页面上时，从右上角页面菜单点击 **Start Action** 按钮。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-4.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=35805420a640a269c052ac371c9074a3" alt="重新启动已停止的 Web3 Action" width="1062" height="188" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-4.webp" />

  <figcaption>
    <p>重新启动已停止的 Web3 Action</p>
  </figcaption>
</figure>

系统会提示您确认操作。点击 **Start Action** 按钮进行确认。

### 升级和编辑 Web3 Action

已部署的 Web3 Actions 可编辑和升级。您可以安全地对任何已激活并部署的 Web3 Action 进行更改，且无需停机。您的 Web3 Action 的新版本将排队，并在前一版本执行完成后立即部署，确保零停机。

要编辑 Web3 Action，前往右上角页面菜单，点击 **三个点图标**。从下拉菜单中，选择 **Edit Action**。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-5.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=c3e21fd0ed5e13d9dba59d7bc85ffe5c" alt="编辑 Web3 Action" width="1052" height="388" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-5.webp" />

  <figcaption>
    <p>编辑 Web3 Action</p>
  </figcaption>
</figure>

您将被转到编辑界面，可以在其中修改 Web3 Action 的任何参数。对更改满意后，在页面底部点击 **Save**。

<figure>
  <img src="https://mintcdn.com/tenderly/XsEZlaGXYskrtN68/images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-6.webp?fit=max&auto=format&n=XsEZlaGXYskrtN68&q=85&s=d837bee5b64c8aa2ef8721da3209f0ca" alt="修改 Web3 Action 参数" width="3364" height="2262" data-path="images/web3-actions/stopping-upgrading-and-manually-running-web3-actions-6.webp" />

  <figcaption>
    <p>修改 Web3 Action 参数 </p>
  </figcaption>
</figure>

您可以随时恢复到 Web3 Action 的先前版本。点击 **Version History** 菜单项以查看所有先前的 Web3 Action 版本。在您要部署的 Web3 Action 版本旁点击 **Deploy** 按钮。

### 手动触发 Web3 Action

要让您的 Web3 Action 工作，必须指定触发器类型。您不需要配置触发器设置。未指定触发器的 Web3 Actions 永远不会自动运行，您需要手动运行它们。

要手动触发 Web3 Action，从右上角页面菜单点击 **Manual Trigger** 按钮。您可以指定任何您想要的负载，只要它符合所需的 schema。

如果您将 block 或 transaction 指定为触发器类型，可以从实际网络获取事务（通过输入事务哈希）或区块（通过输入区块号），而不是手动创建负载。

例如，如果您部署了一个在 Mainnet 上区块被打包时触发的 Web3 Action，以下是您可以用来手动触发该 action 的负载。

```yaml title="example.yaml" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
  'network': '1',
  'blockNumber': 1000,
  'blockHash': '0x5b4590a9905fa1c9cc273f32e6dc63b4c512f0ee14edc6fa41c26b416a7b5d58',
}
```
