Metaplex-如何聆听Solana Metadata Uri的变化?

发布于 2025-02-03 20:16:27 字数 103 浏览 2 评论 0 原文

有人知道我怎么知道NFT的URI已更改?我应该听Solana中的新插槽并寻找更改吗?

有程序ID和类型吗?因此,我可以尝试从Solana交易中的说明和内部说明中获取更改详细信息。

Anyone knows how could I know the URI of NFT has been changed? Should I listen to new slots in SOLANA and look for the changes?

Is there a program id and type? So I can try to get the change details from instructions and inner instructions in Solana transactions.

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

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

发布评论

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

评论(2

她如夕阳 2025-02-10 20:16:27

使用 @solana/web3.js,您可以收听OnAccountChange中的帐户更改,然后在回调中检查URL是否已更改。

afaik您只会收到新的状态,而不是旧身份

With @solana/web3.js you can listen for account changes in onAccountChange and then in the callback check if the URL has changed. https://solana-labs.github.io/solana-web3.js/classes/Connection.html#onAccountChange

AFAIK you only receive the new status, not the old one

盛装女皇 2025-02-10 20:16:27

感谢@mark Sackerberg的支持。如果我们必须从NFT代币列表中聆听(前1K NFT令牌和仍然增长)。我认为我们无法打开1K Websocket连接来收听事件。

Thank @Mark Sackerberg for your supporting. How about in case we must listen from list of NFT Token (ex 1k nft tokens and still growth). I think we can't open 1k websocket connections to listen events.

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