> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/jiang-li/getting-started.md).

# 快速开始

设置 Decentraland Rewards 活动：创建活动、添加可穿戴物或表情动作库存、管理资金并激活发放器。

本页将引导你了解如何使用奖励系统，通过 Decentraland 可穿戴物品和表情来激励用户参与。你将学习如何设置和管理奖励活动，包括创建活动、向活动库存添加物品、管理资金以及使用分发器发放奖励。此外，你还将了解如何激活活动以及处理交易费用。

## 准备条件

开始使用奖励系统之前，请确保你有一个 [已获批准且可用于铸造的合集](https://docs.decentraland.org/creator/content-creator-zh/chuan-dai-wu-yu-biao-qing-dong-zuo/fa-bu-he-ji/publishing-collections.md)。该合集中应包含你计划在活动中作为奖励提供的物品。

## 创建你的首个活动

活动是指旨在通过提供奖励来提升用户参与度的激励计划。在本节中，你将了解活动的配置详情，以及开始发放奖励所需的准备条件。

1. 访问 [奖励 dApp](https://decentraland.org/rewards)
2. 连接你的钱包
3. 点击 **活动** 选项卡
4. 点击 **创建活动** 按钮。系统会将你重定向到活动创建表单。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-5785045cf1c6c2a69e30a94204082974a59585e7%2Fcreate-campaign-page.webp?alt=media)

5. 填写以下字段：

* **活动名称**：为活动选择一个名称。用户可以在奖励页面上看到该名称。
* **活动网络**：选择用于铸造可穿戴物品的网络。请注意，此选择是最终的，活动创建后无法更改。
* **最高 Gas 价格**：设置你愿意为每笔交易支付的最高 Gas 价格。如果某笔交易的 Gas 价格超过此上限，该交易将延后处理，直到价格下降。界面会根据此设置估算每件物品的铸造费用。

6. 点击 **创建活动** 按钮。系统会将你重定向到活动页面。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-96c158f2cbfd97324237adf348c6e06ffef6ab2c%2Fnew-campaign.webp?alt=media)

创建活动后，在开始发放奖励之前，还需完成以下几个步骤：

* **添加 MATIC 代币**：确保你的账户中有足够的 MATIC 代币来支付交易费用。
* **向活动库存添加物品**：将你计划作为奖励提供的物品添加到活动中。
* **创建分发器**：设置一个分发器，用于向用户发放奖励。
* **激活活动**：最后，激活活动，使其正式上线并开始发放奖励。

### 添加 MATIC 以支付交易费用

要铸造物品，你需要向活动地址添加一定数量的 MATIC 代币，以支付交易费用。该地址显示在活动名称下方。

要从钱包转入 MATIC，首先确保你连接到与活动相同的网络。然后，复制活动地址，并向该地址转入所需数量的 MATIC。如果钱包中没有 MATIC，可以按照 [本指南](https://github.com/decentraland/docs/tree/main/player/blockchain-integration/transactions-in-polygon.md#where-can-i-get-matic-to-pay-for-transaction-fees) 获取一些。

{% hint style="info" %}
**💡 提示**：对于在测试 **AMOY** 网络上运行的活动，你可以从 [此水龙头](https://faucet.polygon.technology/).
{% endhint %}

获取一些 MATIC。从交易所转出 MATIC 时，只需将 MATIC 代币提至 Polygon 网络即可（交易所通常不支持 Amoy 网络）。

### 向活动库存添加物品

创建新活动时，其库存为空。要开始发放奖励，你需要向活动添加物品：

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-420b064368987ce02c3811bc3307d0f8fc618db6%2Fwithout-supply.webp?alt=media)

* **授予铸造权限**：首先，授权活动铸造物品。请按照 [本指南](https://docs.decentraland.org/creator/content-creator-zh/chuan-dai-wu-yu-biao-qing-dong-zuo/fa-bu-he-ji/publishing-collections.md#adding-minters-to-the-collection) 并将活动地址（位于活动名称下方）用作铸造者地址。提交后，请等待交易确认。
* **向活动库存添加物品**：授予铸造权限后，即可开始向活动库存添加物品。

  a) 点击 **添加供应量** 按钮，查看所有已授予该活动铸造权限的藏品。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-fd04e0704d346e5b2bfd9f4f200c8b0e2b024460%2Fcollection-available.webp?alt=media)

```
b) 从藏品中选择要添加到库存的物品，然后点击 **添加供应量** 按钮。
```

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-95fa42af61ac1b5379a66d940c5d68a6508144b1%2Fadd-supply.webp?alt=media)

```
c) 选择要添加到活动库存的物品数量，然后点击 **添加供应量** 按钮。
```

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-2e0689842b6db67a1c133cbc7b90da3d08252e2e%2Fwith-supply.webp?alt=media)

{% hint style="info" %}
Priority 和 Group 字段属于高级功能，将在专门的章节中介绍。
{% endhint %}

### 创建发放器以发放奖励

发放器用于从库存发送或领取奖励。每个发放器都关联一个唯一密钥，用于通过 HTTP API 进行身份验证。虽然界面中不会显示该密钥，但可以点击“复制”按钮将其复制。

创建新活动时，系统会自动提供一个带主密钥的默认发放器，仅供测试使用。要设置新的发放器，请点击 **添加发放器** 按钮。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-5752511828655cda31a00b011453075e1ed2c2d1%2Fcreate-dispenser.webp?alt=media)

选择要从中取出物品的物品组，然后点击 **保存** 按钮。

{% hint style="info" %}
发放器提供一些配置选项，将在专门的章节中介绍。
{% endhint %}

### 激活活动

默认情况下，活动处于非激活状态，因此奖励服务不会分配任何新奖励。要激活活动，请点击 **激活活动** 按钮。

{% hint style="warning" %}
**📔 注意**：如果将已激活的活动设为非激活状态，所有待处理的奖励仍会发送。不过，新领取的奖励以及因某种原因需要重试的领取操作将被阻止。
{% endhint %}

**现在，您可以使用** [**API**](https://docs.decentraland.org/creator/content-creator-zh/jiang-li/integrations.md)

### 管理资金

活动完成后，如果交易手续费仍有剩余资金，所有者可以选择收回这些资金，或将其重新分配给其他活动。要收回资金，只需点击活动详情页上的“管理资金”按钮。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-fcce7761ac71c431f15b8c39e5a6cdf053ce17ac%2Fmanage-funds.webp?alt=media)

{% hint style="warning" %}
**📔 注意**：如果从活动中移除全部资金，与该活动相关的所有待处理或新交易都将被阻止，直到分配更多资金为止。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-zh/jiang-li/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
