[英]How to get information about an NFT contract using Alchemy web3 SDK?
I am using Alchechemys getNFTs API to get NFTs for a wallet.我正在使用 Alchechemys getNFTs API来获取钱包的 NFT。 The API returns a contract address for a given NFT:
API 返回给定 NFT 的合约地址:
"contract": {
"address": "0x0beed7099af7514ccedf642cfea435731176fb02"
},
However I need more information about the contract, like owner, number of tokens, etc. I went through the API specification but I don't seem to find a corresponding endpoint.但是,我需要有关合同的更多信息,例如所有者、代币数量等。我查看了 API 规范,但似乎没有找到相应的端点。
Q: How to get information about an NFT contract via Alchemy web3 SDK? Q:如何通过Alchemy web3 SDK获取NFT合约信息?
The Alchemy NFT API mostly returns data about specific tokens (such as its current owner or metadata ). Alchemy NFT API 主要返回有关特定令牌的数据(例如其当前所有者或元数据)。
For collections, they only support a list of tokens in the collection.对于 collections,它们只支持集合中的令牌列表。 Which you can at least use to calculate the number of tokens.
您至少可以使用它来计算令牌的数量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.