getNftsForContract - SDK
Get all NFTs for a given contract address. This method returns the full NFTs in the contract. To get all NFTs without their associated metadata, use the options parameter.
Get all NFTs for a given contract address.
This method returns the full NFTs in the contract. To get all NFTs without their associated metadata, use the options
parameter.
Don’t have an API key?
Start using this method in your app today. Get started for free
Description
Get all NFTs for a given contract address.
This method returns the full NFTs in the contract. To get all NFTs without their associated metadata, use the options
parameter.
Parameters
options
paramters
Response
NftContractNftsResponse
object parameters
Example Request and Response
Prerequisite: You will need to install the Alchemy SDK before making requests with it.
The commands for installing it using npm or yarn are given below:
Request
Response
Use Cases
Here are some potential use cases for the getNftsForContract
method:
-
NFT marketplace integration: An NFT marketplace could use the
getNftsForContract
method to display all the NFTs associated with a particular contract address. This would allow users to easily browse and search for NFTs on the marketplace. -
Portfolio tracking: NFT collectors or investors could use the
getNftsForContract
method to track their NFT holdings associated with a specific contract address. This could be particularly useful for investors who are interested in tracking the performance of specific NFT projects or creators. -
Gaming applications: Gaming applications that use NFTs could use the
getNftsForContract
method to retrieve all the NFTs associated with a particular game or game studio. This could help developers create more immersive gaming experiences and reward players with unique NFTs for their in-game achievements.
Related Methods
-
getNftsForContractIterator: Fetches all NFTs for a given contract address and yields them in an async iterable.
-
getNftMetadata: Get the NFT metadata associated with the provided parameters.