List of all SDK NFT methods.
Introduction
The Alchemy SDK NFT Methods allow for retrieving NFT data, verifying NFT ownership, and much more for improved troubleshooting and analysis.
Supported Methods
Method | Description |
---|---|
getNftsForOwner | Get all NFTs for an owner. |
getNftMetadata | Get the NFT metadata associated with the provided parameters. |
getNftMetadataBatch | Gets the NFT metadata for multiple NFT tokens. |
refreshNftMetadata | Refreshes the cached metadata for a provided NFT contract address and token id. Returns a boolean value indicating whether the metadata was refreshed. |
getNftSales | Returns NFT sales that have happened through on-chain marketplaces. |
summarizeNftAttribute | Get a summary of attribute prevalence for an NFT collection. |
searchContractMetadata | Search for a keyword across the metadata of all ERC-721 and ERC-1155 smart contracts. |
getNftsForOwnerIterator | Fetches all NFTs for a given owner and yields them in an async iterable. |
getNftsForContractIterator | Fetches all NFTs for a given contract address and yields them in an async iterable. |
getContractMetadata | Get the NFT collection metadata associated with the provided parameters. |
getNftsForContract | Get all NFTs for a given contract address. |
getTransfersForOwner | The getTransfersForOwner method gets all NFT transfers for a given owner address. |
getTransfersForContract | The getTransfersForContract method gets all NFT transfers for a given NFT contract address. |
getMintedNfts | The getMintedNfts method gets all the NFTs minted by a specified owner address. |
getOwnersForNft | Gets all the owners for a given NFT contract address and token ID. |
getOwnersForContract | Gets all the owners for a given NFT contract along with the token balance. |
getSpamContracts | Returns a list of all spam contracts marked by Alchemy. |
isSpamContract | Returns whether a contract is marked as spam or not by Alchemy. |
refreshContract | Triggers a metadata refresh of all NFTs in the provided contract address. This method is useful after an NFT collection is revealed. |
getFloorPrice | Returns the floor prices of an NFT contract by marketplace. |
computeRarity | Get the rarity of each attribute of an NFT. |
verifyNftOwnership | Checks that the provided owner address owns one or more of the provided NFTs. Returns a boolean indicating whether the owner's address owns the provided NFT. |