我如何在节奏中跟踪我合同中每个NFT的所有者?

发布于 2025-01-24 11:07:03 字数 68 浏览 4 评论 0原文

有人建议我应该在外部DB中汇总事件,但我正在努力避免这种情况并将所有信息保留在合同中。有什么想法吗? -spacepluk

Someone suggested I should aggregate events in an external db but I'm trying to avoid that and keep all the info in the contract. Any ideas? -spacepluk

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

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

发布评论

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

评论(1

公布 2025-01-31 11:07:03

没有办法在链上做到这一点。 Cadence中的NFT是存储在用户帐户中的资源,而不是合同(“分散存储” /所有权,而不是“ Ledger Style” /“集中存储”)。用户可以用数据自由地做他们想做的任何事情,包括传输数据。那不是合同的函数。设计不同。 - 巴斯蒂安

There’s no way to do that on-chain. NFTs in Cadence are resources stored in user’s account instead of the contract (“decentralized storage” / ownership instead of “ledger-style” / centralized storage). Users can freely do whatever they want with their data, including transferring it. That’s not a function of the contract. It’s different by design. -Bastian

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