> 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 Wearables 和 Emotes 激励用户参与。你将学习如何设置和管理奖励活动，包括创建活动、向活动库存添加物品、管理资金，以及使用分发器发放奖励。此外，你还会找到有关激活活动和处理交易费用的说明。

## 前提条件

在开始使用奖励系统之前，请确保你拥有一个收藏集 [已获批准并准备好进行铸造](/creator/content-creator-zh/chuan-dai-pin-yu-biao-qing/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-2864c9653d10a3886d0dfd60e5ff143daffe94e8%2Fcreate-campaign-page.png?alt=media)

5. 填写以下字段：

* **活动名称**：为你的活动选择一个名称。此名称将显示在用户的奖励页面上。
* **活动网络**：选择你的 Wearables 将在哪个网络上铸造。请注意，此选择是最终的，一旦活动创建后将无法更改。
* **最大 Gas 价格**：设置你愿意为每笔交易支付的最高 gas 价格。如果某笔交易的 gas 价格超过此上限，它将被延后，直到价格下降。UI 将根据此设置提供铸造每个物品的成本估算。

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

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-12e752af40575997159da5dd7759e2b17d427add%2Fnew-campaign.png?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 代币提现到 Polygon 网络（通常交易所不提供 Amoy 网络）。

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

当你创建新活动时，它会从空库存开始。要开始发放奖励，你需要向活动中添加物品：

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

* **授予铸造权限**：首先，授权该活动铸造物品。请按照 [本指南](/creator/content-creator-zh/chuan-dai-pin-yu-biao-qing/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-c4150f495ff07f1fde8b1d4404e665659d9a1b49%2Fcollection-available.png?alt=media)

```
b) 从收藏集中选择你想添加到库存中的物品，然后点击 **添加库存** 按钮。
```

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

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

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

{% hint style="info" %}
优先级和分组字段是高级功能，将在专门章节中介绍。
{% endhint %}

### 创建一个分发器来发放奖励

分发器是用于从你的库存中发送或领取奖励的工具。每个分发器都关联一个唯一密钥，该密钥用于 HTTP API 的身份验证。虽然该密钥不会显示在 UI 中，但你可以点击复制按钮进行复制。

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

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

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

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

### 激活你的活动

默认情况下，你的活动处于非活跃状态。这会阻止奖励服务分配任何新的奖励。要激活你的活动，请点击 **激活活动** 按钮。

{% hint style="warning" %}
**📔 注意**：如果一个已激活的活动被设置为非活跃，任何待处理的奖励仍会发送。不过，新的领取请求或因某些原因需要重试的领取请求将被阻止。
{% endhint %}

**现在你已经准备好开始使用** [**API**](https://github.com/decentraland/docs/tree/main/creator/rewards/api.md)

### 管理资金

活动完成后，如果交易费用还有剩余资金，所有者可以选择收回这些资金，或者将其重新分配给另一个活动。要收回资金，只需在活动详情页面点击“管理资金”按钮。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-8cf429fc57594ab379f05eeada8e7aab8e5dd6a0%2Fmanage-funds.png?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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
