如何使用 IPFS CID 创建子文件夹?

发布于 2025-01-14 18:05:31 字数 371 浏览 2 评论 0原文

我正在尝试部署 NFT。它是 mfers 合约的副本。 mfers 合约的代币 URI 引用为 ipfs://QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo/#

其中 # 是代币编号。在所有令牌中,ipfs 哈希 QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo 是相同的。你如何在 ipfs 中设置这样的东西?请注意,ipfs URL 返回一个 json 对象。提前致谢。

I'm trying to deploy an NFT. It's a replica from the mfers contract. The mfers contract has the token URI referenced as ipfs://QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo/#

Where # is the token number. Across all tokens, the ipfs hash QmWiQE65tmpYzcokCheQmng2DCM33DEhjXcPB6PanwpAZo is the same. How do you set something like this up in ipfs? Note that ipfs URL returns a json object. Thanks in advance.

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

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

发布评论

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

评论(1

一直在等你来 2025-01-21 18:05:31

If you are interacting with IPFS directly, Mutable File System API abstract away the process of creating directories/subdirectories, treating IPFS as a file system. It isn't how IPFS works, but it is a more intuitive layer on top of IPFS.

If you're uploading via NFT.storage API or client, you might want to check out an uploadDirectory example.

See also: https://gist.github.com/tougerthao/9452b85fcb1f2b2b129c43dd5ecdc885

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