> 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。如果 NFT 也有 3D 表现形式，例如 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-81fe7d71b8b9e2f56a1ec942daa856fc4e7e2747%2Fnft-item.png?alt=media)

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

* **网络**：你的 NFT 所在的区块链网络。默认使用以太坊主网，但你也可以选择 Polygon（matic）或若干测试网络之一。
* **合约**：该 NFT 所属合集的合约地址（例如：Cryptokitties、SuperRare、Decentraland Halloween Wearables 2019 等）
* **代币**：这个特定 NFT 的唯一 ID

要获取这些信息，最简单的方法是在 Decentraland 市场中查找它们，然后查看 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 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/chang-jing-bian-ji-qi/gou-jian/nfts.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.
