> 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/chang-jing-bian-ji-qi/gou-jian/nfts.md).

# NFT

向场景添加 NFT 肖像

你可以将 NFT（非同质化代币）添加到场景中，并以画框的形式显示。

OpenSea 支持的所有图像和 GIF 格式，Decentraland 的画框也都支持。当前暂不支持视频或音频格式的 NFT。具有 3D 表现形式的 NFT（例如 Decentraland 可穿戴物品）会以 2D 图像的形式显示在画框中。

## 添加 NFT

使用 NFT 智能物品。你可以在 **智能物品** 资源包中找到它，也可以直接在上方的搜索栏中搜索 *NFT* 。将 NFT 物品的副本拖到场景中并选中后，你可以配置几个字段。

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

需要配置的主要字段决定要显示哪个 NFT：

* **网络**：NFT 所属的区块链网络。默认使用以太坊主网，你也可以选择 Polygon (matic) 或多个测试网络之一。
* **合约**：NFT 所属系列的合约地址（例如 Cryptokitties、SuperRare、Decentraland Halloween Wearables 2019 等）。
* **代币**：此 NFT 的唯一 ID。

要获取这些信息，最简单的方法是在 Decentraland 市场中查找 NFT，然后查看 URL。例如，以下物品的 URL：

*<https://market.decentraland.org/contracts/0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0/tokens/20175>*

可以推断出合约地址是 *0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0* （对应 SuperRare），ID 是 *20175*.

同样，你也可以从代币的 OpenSea URL 中获取这些信息。例如，以下物品的 URL：

*<https://opensea.io/assets/0x31385d3520bced94f77aae104b406994d8f2168c/2614>*

可以推断出合约地址是 *0x31385d3520bced94f77aae104b406994d8f2168c* ，ID 是 *2614*.

NFT 智能物品还可以配置以下可选字段：

* **画框样式**：默认画框样式带有发光边框，可能与艺术品或场景的风格不协调。你可以从多种其他样式中进行选择，从巴洛克风格到极简风格，甚至可以选择在画作四角贴上胶带的样式。
* **颜色**：背景透明的 NFT 会添加背景色，默认为紫色。你可以选择其他任何颜色。请注意，某些画框样式（例如 *无*）完全不包含背景色。

{% hint style="warning" %}
**📔 注意**：只有在预览模式下进入场景，才能看到这些更改生效。这些更改都不会修改你在编辑模式下拖动的智能物品的显示效果。
{% endhint %}

请参阅 [显示 NFT](/creator/content-creator-zh/chang-jing-sdk7/mei-ti/display-a-certified-nft.md) ，了解 Decentraland 如何处理 NFT 肖像的更多详情。


---

# 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/chang-jing-bian-ji-qi/gou-jian/nfts.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.
