# 手把手教你如何设置NFT作为你的ENS头像

By [GohanGo!!](https://paragraph.com/@gohango) · 2022-05-16

---

![](https://storage.googleapis.com/papyrus_images/a207d7bd02dd9a32c9514d66f95e17a683de0fbdc1654a44f19b1404c2ca8638.png)

本文将逐步介绍如何为你的ENS个人主页设置头像。现在仅支持**以太坊**上的**ERC-721**和**ERC-1155**的NFT（未来可能会支持更多）。

注意：现在ENS Manager的服务很多都需要手动设置。之后ENS Manager的新设计（[剧透点这里](https://twitter.com/BrantlyMillegan/status/1433886211324665859)）会让设置变得更简便。但现在还是看下面详细的步骤：

### 1）你有ENS域名吗？

如果你没有ENS，你可以注册一个[.ETH域名](https://medium.com/the-ethereum-name-service/step-by-step-guide-to-registering-a-eth-name-on-the-new-ens-registrar-c07d3ab9d6a6)或者导入在[app.ens.domains](https://app.ens.domains/)持有的[DNS域名](https://medium.com/the-ethereum-name-service/full-dns-namespace-integration-to-ens-now-on-mainnet-9d37270807d3)。这几种ENS域名你都可以为他们设置NFT作为头像。

![](https://storage.googleapis.com/papyrus_images/90476d4b8d61533b9fccf4ddc5420a5105eb82db9a27133568f291ccb0f5312c.png)

### 2）你是否设置好了Primary ENS Name record？

确定你已经设置好了 Primary ENS Name (reverse record)。这一步相当于是设置你的某一个ENS域名作为你在以太坊dapp里的用户名。首先到[app.ens.domains](https://app.ens.domains/)，然后选择My Account，最后使用那一页的工具进行设置。

![](https://storage.googleapis.com/papyrus_images/350c3e54b24833458ffa89c642c06ac571eec954e2cac277aedec8abb137089d.png)

### 3）设置头像

进入[app.ens.domains](https://app.ens.domains/)，然后搜索你的ENS域名，你会看到这一个记录页面。确保你已经连接了钱包，必须是拥有这个ENS域名的钱包。再点击”Add/Edit Records”。

> 下滑页面到“Text”部分，这里你会看到头像的记录。

![](https://storage.googleapis.com/papyrus_images/c31822350ca5f6a577ffb4c7a6387a8a9ded59d162a6694f0f4d81f357befe14.png)

P.S.：你可以将HTTPS链接或IPFS哈希值放到文件里。 但如果**你想放你拥有的NFT，你可以以这个格式输入**：

eip155:1/\[NFT standard\]:\[contract address for NFT collection\]/\[token ID or the number it is in the collection\]

> 你可以在OpenSea找到你的NFT的”Details“这一项里找到以上所需的全部信息。

![](https://storage.googleapis.com/papyrus_images/8594d3712beb65cdbef70cd5a5718012403cd74700924f837aa082a57553e181.png)

> 点击蓝色文字的合约地址，你会跳转到这个Etherscan的页面，这里可以复制到完整的合约地址。

![](https://storage.googleapis.com/papyrus_images/d3c8e607f145d3aae69ebd1b3e09a2e0395014fe16dabb91dc0d6a7596329d34.png)

用这个NFT来举例，最后所有的信息整合到一起是这样的：

eip155:1/erc721:0xb7F7F6C52F2e2fdb1963Eab30438024864c313F6/2430

注意：token standard部分不能有“-”这个符号。所以尽管OpenSea显示的是“ERC-721”，输入的时候应为”erc721”。此外，字母都应是全小写，不然是行不通的。未来设置的过程都可以自动完成，但现在还需要手动设置所以要避免犯这些常见的错误。

在Avatar这一项里填写这一行信息，下拉点击“confirm”，就会跳转到approve transaction的页面。一旦区块链上确认了这笔交易，你的头像就设置好了！

记得如果你放的NFT并不是你持有的，头像只会在dapp里显示。

### 试用一下

刷新ENS Manager App的页面，在左边你会看到你的ENS域名和头像。要注意的是，头像显示你的NFT需要花一些时间（我们正在努力减少需要花费的时间）。

![](https://storage.googleapis.com/papyrus_images/991084b457faa45b0e299d7266055568a95bcf7bf8cfdbee9df6cd3bf02b6e78.png)

下一步我们到OpenSea搜索你的域名，刷新metadata（点击右上角的刷新按钮），等待几分钟，再刷新整个页面......然后你的ENS域名的背景图就会变成你设置的NFT头像！（[更多我们最新的Meatdata服务点这里](https://medium.com/the-ethereum-name-service/major-refresh-of-nft-images-metadata-for-ens-names-963090b21b23)。）

![](https://storage.googleapis.com/papyrus_images/66c400c07ea6513156a75bb5dff3e06169c1bd61168c7b6be5f2acd5fe23dc4e.png)

> 现在我们到[app.uniswap.org](https://app.uniswap.org/#/swap?chain=mainnet)然后连接钱包。等一会就会显示你的ENS域名和头像。

![](https://storage.googleapis.com/papyrus_images/278db0e718758d32735105de7d7e4ed19af32937baad8cb136de6b5b1583d5f8.png)

> 点击你的域名然后你会再看到：

![](https://storage.googleapis.com/papyrus_images/1b340a23144b134558c2cfc684d55fec17db9304516927de82664a46fae7a76e.png)

> 最后，我们到app.1inch.io连接你的钱包。和Uniswap差不多，你会先在右上角看到......

![](https://storage.googleapis.com/papyrus_images/4704356a1d929b186b1c362a62817b0def0149284e532e0049852f2d3337da88.png)

> 然后点击你的ENS域名的时候在个人主页的小窗口你也会看到......

![](https://storage.googleapis.com/papyrus_images/4cf8c8fca6621ecf6d58f8bbcb2733ab63e5e948ad000c131b5ab8a45a881869.png)

原文 Source Text:

[https://medium.com/the-ethereum-name-service/step-by-step-guide-to-setting-an-nft-as-your-ens-profile-avatar-3562d39567fc](https://medium.com/the-ethereum-name-service/step-by-step-guide-to-setting-an-nft-as-your-ens-profile-avatar-3562d39567fc)

关注我们 Follow Us:

[https://twitter.com/GohanGoNFT](https://twitter.com/GohanGoNFT)

加入我们 Join Us：

[https://t.co/YxSGB87qS9](https://t.co/YxSGB87qS9)

---

*Originally published on [GohanGo!!](https://paragraph.com/@gohango/nft-ens)*
