获取solana nft的所有交易
我想收集NFT的所有交易。
例如,您可以在此处显示所有交易:
https://explorer.solana.com/address/2nzt8tyeafgjdftkzkb7rgyshvvyxtr7cpvvpqaz2a4v
或在这里:
https://solscan.io/token/2nzt8tyeafgjdftkzkb7rgyshvvyxtr7cpvvpqaz2a4v#txs
但是有什么方法可以与API一起做到这一点?
我检查了
solana-py: https://michaelhly.githly.githly.githly.io/solana-py/solana-py/
和solscan api: https://public-api.solscan.io/docs/
做到这一点。
I want to collect all transactions for an NFT.
For example, you can display all transactions here:
https://explorer.solana.com/address/2Nzt8TYeAfgJDftKzkb7rgYShVvyXTR7cPVvpqaZ2a4V
or here:
https://solscan.io/token/2Nzt8TYeAfgJDftKzkb7rgYShVvyXTR7cPVvpqaZ2a4V#txs
But is there any way to do this with the API?
I checked
solana-py: https://michaelhly.github.io/solana-py/
and solscan api: https://public-api.solscan.io/docs/
But I could not find a way to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 getsignatures foraddressforaddress MINT和WALK的RPC方法向后获取所有交易。
这是JS中的一个示例:
solana.py
中的等效方法是 https://michaelhly.github.io/solana-py/rpc/pc/papi/#solana.rpc.api.client.get_signatures_for_addressYou can use the getSignaturesForAddress RPC method on the mint address and walk backward to get all the transactions.
Here is an example in JS:
The equivalent method in
Solana.py
is this one https://michaelhly.github.io/solana-py/rpc/api/#solana.rpc.api.Client.get_signatures_for_address