getNFTs

Gets all NFTs currently owned by a given address.

Recipes
🖼
Script to Get All NFTs Owned by an Address
Open Recipe
🖼
Script to Resolve ENS Domains Given a Wallet Address
Open Recipe

Don’t have an API key?

Start using the NFT API in your app today.

📘

Alchemy SDK Renaming

In the Alchemy SDK, this method has been renamed to getNftsForOwner.

📘

A note about tokenType = 'UNKNOWN'

Sometimes in the response, you will see that the tokenType is UNKNOWN for a few NFTs.

This might happen because the smart contract for the NFT collection does not implement the supportsInterface method properly.

  • A contract will be marked as erc721 if it implements supportsInterface with interface id: 0x80ac58cd
  • If it implements supportsInterface with interface id: 0xd9b67a26, it will be marked as erc1155
  • If it implements both, erc721 takes precedence
  • if neither is implemented, we will mark it as unknown

So if you see that for the particular NFT collection, it might be wise to add the supportsInterface method and redeploy.

To understand more about our SPAM classification, visit the FAQ

ChainMainnetTestnet
Ethereum:white-check-mark::white-check-mark:
Polygon:white-check-mark::white-check-mark:
Optimism:white-check-mark::white-check-mark:
Arbitrum:white-check-mark::white-check-mark:
Language
URL
Click Try It! to start a request and see the response here!