NFT从自定义ERC-1155智能合约未正确显示在etherscan上的Goerli测试网

发布于 2025-02-03 22:05:24 字数 1139 浏览 4 评论 0 原文

我已将ERC-1155智能合约部署到地址:0xe4e0b1fa4b3f4b947a14d429962ed30fec9b9a96( etherscan链接

我在智能合约上执行了第一次交易,该交易将NFT转移到此地址:0x771D8EF1FA5B7FDE4CBD88925F21CF21CF97D8B8A46D(< etherscan链接)。

如果我在Etherscan上打开ERC1155代币TXNS选项卡,我会看到帐户中的令牌,但是,我看不到令牌旁边的视图NFT按钮,这就是我看到的是从OpenSea购买ANFT的内容。

对于上下文,这是我在eTherscan中看到的eTherscan,其中opensea的nft,带有视图NFT按钮:

<< img src =“ https://i.sstatic.net/xcyja.png” alt =“在这里输入图像说明”>

这是指向ipfs上的token元数据的URI:

这是令牌的元数据:

{"name":"Goerli test 6","description":"","image":"https://bafkreidkn5flzjnvcdginsktvzbcrslqd7wrabjavejectvqxi2xq5v6bm.ipfs.dweb.link/"}

有什么东西特别是我必须完成的,以便etherscan可以预览NFT?还是我的智能合约或元数据格式不正确?

I have deployed an ERC-1155 smart contract to the Goerli test net at address: 0xE4e0b1FA4b3f4B947A14D429962eD30fEc9b9a96 (Etherscan link)

I performed the first transaction on the smart contract, which transferred an NFT to this address: 0x771d8Ef1FA5b7fDE4cBd88925F21cF97D8b8A46D (Etherscan link).

If I open the ERC1155 Token Txns tab on Etherscan, I see the tokens in my account, however, I do not see a View NFT button next to the token, which is what I see if I were to purchase an NFT from OpenSea.

For context, this is what I would see in Etherscan for an NFT from OpenSea, with the View NFT button:

enter image description here

Here is the URI pointing to the token's metadata on IPFS: https://bafyreige3aa4bqeoy52rswmpkhzrlpitpvsyfp5hpusfuq52wdybuyerfi.ipfs.dweb.link/metadata.json

And here is the token's metadata:

{"name":"Goerli test 6","description":"","image":"https://bafkreidkn5flzjnvcdginsktvzbcrslqd7wrabjavejectvqxi2xq5v6bm.ipfs.dweb.link/"}

Is there anything in particular that must be done on my part so that Etherscan can preview the NFT? Or is it more likely that my smart contract or the metadata format is incorrect?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清音悠歌 2025-02-10 22:05:24

您的代码需要首先在etherscan上发布。

Your code needs to be published on Etherscan first.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文