简体   繁体   English

Metaplex - 如何监听 Solana 元数据 URI 的变化?

[英]Metaplex - How to listen to changes of Solana Metadata URI?

Anyone knows how could I know the URI of NFT has been changed?任何人都知道我怎么知道 NFT 的 URI 已更改? Should I listen to new slots in SOLANA and look for the changes?我应该听听 SOLANA 中的新插槽并寻找变化吗?

Is there a program id and type?是否有程序 ID 和类型? So I can try to get the change details from instructions and inner instructions in Solana transactions.所以我可以尝试从 Solana 交易中的指令和内部指令中获取变更细节。

With @solana/web3.js you can listen for account changes in onAccountChange and then in the callback check if the URL has changed.使用@solana/web3.js,您可以在 onAccountChange 中监听帐户更改,然后在回调中检查 URL 是否已更改。 https://solana-labs.github.io/solana-web3.js/classes/Connection.html#onAccountChange https://solana-labs.github.io/solana-web3.js/classes/Connection.html#onAccountChange

AFAIK you only receive the new status, not the old one AFAIK您只收到新状态,而不是旧状态

Thank @Mark Sackerberg for your supporting.感谢@Mark Sackerberg 的支持。 How about in case we must listen from list of NFT Token (ex 1k nft tokens and still growth).万一我们必须从 NFT 代币列表(例如 1k nft 代币和仍在增长)中收听呢? I think we can't open 1k websocket connections to listen events.我认为我们无法打开 1k websocket 连接来监听事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM