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

Viewed 407

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?

1 Answers

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.

Related