我如何在节奏中跟踪我合同中每个NFT的所有者?
有人建议我应该在外部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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有办法在链上做到这一点。 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