简体   繁体   中英

How to get information about an NFT contract using Alchemy web3 SDK?

I am using Alchechemys getNFTs API to get NFTs for a wallet. The API returns a contract address for a given 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.

Q: How to get information about an NFT contract via Alchemy web3 SDK?

The Alchemy NFT API mostly returns data about specific tokens (such as its current owner or metadata ).

For collections, they only support a list of tokens in the collection. Which you can at least use to calculate the number of tokens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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