> 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/contributor/contributor-zh/nei-rong/collections.md).

# 集合

收藏集是……的集合 [可穿戴物品](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/wearables.md) 和 [表情动作](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/emotes.md) 定义在相同的链下命名空间或链上合约中。

它们本身并不是 [实体](https://github.com/decentraland/docs/blob/main/contributor/entities.md) 就其自身而言，但其单个物品通常可以使用 [指针](https://github.com/decentraland/docs/blob/main/contributor/pointers.md).

### URN 和指针 <a href="#pointers" id="pointers"></a>

收藏集使用 URN 标识，它们是其物品 URN 的前缀。URN 一般有 4 种类型：

* `v1` 包含基金会批准内容的收藏集（已弃用）。
* `v2` 包含社区批准内容的收藏集。
* `第三方` 其中物品关联到 Decentraland 之外的 NFT 的收藏集。
* `链下` 收藏集，主要包含新头像的默认物品。

{% hint style="info" %}
尽管 `v1` 收藏集已弃用，今后不会再创建或更新，但它们仍然有效，其物品仍可使用。
{% endhint %}

#### 第 1 版和第 2 版收藏集

旧的 `v1` 和当前的 `v2` 收藏集命名空间都具有相同格式的 URN：

```
urn:decentraland:<blockchain>:<collections-version>:<contract-address>
```

例如：

```
# 一个位于已弃用 v1 空间中的收藏集：
urn:decentraland:mainnet:collections-v1:DCL Test Masks

# 一个位于 v2 社区批准空间中的收藏集：
urn:decentraland:matic:collections-v2:0x25a1d66891d44cdf7b8c45802489c1dea7aadf8b
```

如果 `:<id>` 片段附加到末尾，则该 URN 会变成一个 [指针](https://github.com/decentraland/docs/blob/main/contributor/pointers.md) 指向收藏集内某个物品的指针。参见 [可穿戴物品指针](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/wearables.md#pointers) 和 [表情动作指针](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/emotes.md#pointers) 了解相关信息。

#### 第三方收藏集

第三方收藏集，也称为 [关联可穿戴物品](https://github.com/decentraland/docs/blob/main/contributor/wearables-and-emotes/wearables/linked-wearables.md)，与普通可穿戴物品不同，因为它们绑定的是 Decentraland 之外现有的 NFT。它们允许玩家在游戏内头像上展示其个人收藏中的 NFT。

它们的 URN 看起来像这样：

```
urn:decentraland:<blockchain>:collections-thirdparty:<third-party-id>:<collection-id>
```

你可以在 [关联可穿戴物品](https://github.com/decentraland/docs/blob/main/contributor/wearables-and-emotes/wearables/linked-wearables.md) 创作者文档中找到关于这些的丰富信息。

### 发现收藏集

内容服务器可以使用 [`/lambdas/collections`](https://decentraland.github.io/catalyst-api-specs/#tag/Lambdas/operation/getCollections) 端点为你提供所有已知收藏集的列表。

响应将是一个带有 `collections` 属性的对象，其中包含一个 URN 和名称数组。例如：

```json
{
  "collections": [
    {
      "id": "urn:decentraland:amoy:collections-v2:0xff5d4ebc6bc1ff7262cab42d3c693d953f4614d2",
      "name": "冬季服装收藏集"
    },
    // ... many more
  ]
}
```


---

# 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/contributor/contributor-zh/nei-rong/collections.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.
