简体   繁体   English

获取特定 nft 代币的交易历史

[英]Get transaction history of a particular nft token

I want to retrieve all the transactions (for getting ownership history) of a given NFT(erc721) tokenId.我想检索给定 NFT(erc721) tokenId 的所有交易(用于获取所有权历史记录)。 How is it possible?这怎么可能?

I managed to do this by filtering all the "transfer" events using getPastEvents here .我设法通过在此处使用getPastEvents过滤所有“传输”事件来做到这一点。 The to , from and tokenId are indexed on chain. tofromtokenId在链上被索引。 So we can apply those filters.所以我们可以应用这些过滤器。 Had to somehow take care of the infura limits by recursively calling the function.必须通过递归调用函数来以某种方式处理 infura 限制。

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

相关问题 仅在 Solana 上的交易数据中获取 NFT 转账 - Get NFT transfers only in transaction data on Solana Solana:使用 Js 从 NFT 代币获取 Candy Machine 信息 - Solana: Get Candy Machine info from a NFT token using Js node - 如何为文件生成 NFT 令牌 - node - How to generate NFT token for a file 在 solana 中调用 transaction.from() 后,有没有办法获取金额(我们在交易中发送的令牌数) - Is there any way to get amount(number of token we are sending in transaction) after calling transaction.from() in solana 是否可以删除特定的浏览器历史记录 - Is It possible to Remove particular browser history CATCH ERROR: NOK: Transaction not found with hash: 使用 codeSTACKr 的 NFT 艺术生成器 - CATCH ERROR: NOK: Transaction not found with hash: With codeSTACKr's NFT art generator 如何从 Solana web3 中的交易签名中获取代币铸造地址 - How to get a token mint address from a transaction signature in Solana web3 如何通过“@solana/web3.js”和“@solana/spl-token”调用 nft 程序? - How to make a call to nft programs by '@solana/web3.js' and "@solana/spl-token"? 如何使用虚拟钱包和 solana web3js 转移 NFT spl-token - How to transfer NFT spl-token using phantom wallet and solana web3js 获取控制台历史记录 - Get console history
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM