getNFTCollection
Get collection data for the given NFT contract address.
How to use getNFTCollection method ?
Below, you'll find an in-depth guide that provides a comprehensive explanation of how to utilize the getNFTCollection method effectively using Blast.
Parameters
Below, you can find the query parameters accepted by the method.
Parameter | Type | Description |
---|---|---|
contractAddress* | string | The NFT contract address |
Returns
Parameter | Type | Description |
---|---|---|
contractAddress | string | The contract address of the NFT collection |
contractName | string | The contract name of the NFT collection |
contractSymbol | string | The symbol of the NFT collection contract |
contractType | string | The type of contract governing the NFT collection |
deployBlockNumber | number | The block number at which the NFT collection contract was deployed. |
totalSupply | string | The total supply of NFTs in the collection |
numberOfOwners | number | The total number of unique owners of NFTs in the collection |
numberOfDistinctTokens | number | The number of unique NFTs (distinct tokens) within the collection |
numberOfTransfers | number | The total number of transfers |
walletBalance | NFTCollectionBalance object(optional) | The balance information associated with the owner of the collection |
contractAddress | string | The contract address of the NFT collection |
contractType | string | The type of the NFT contract ('erc721' or 'erc1155') |
walletAddress | string | The address which owns the NFT now (null for erc1155 tokens) |
totalTokenBalance | string | The total balance of tokens owned by the specified owner in the collection |
distinctTokenBalance | string | The balance of distinct tokens owned by the specified owner in the collection |
description | string | A description providing further details about the NFT collection, if available |
website | string | The website associated with the NFT collection, if available |
cachedBanner | CachedMedia object | An object containing cached banner media data for the collection, if available |
cachedLogo | CachedMedia object | An object containing cached logo media data for the collection, if available |
Example Request and Result for getNFTCollection
In this section, you can find an illustrative example of a request made to retrieve the collection data using the getNFTCollection method.
The example in this section uses a non-existing project id.
Make sure you replace it with your Starknet endpoint when issuing the Builder API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Returns NFTCollection object.
GET
https://starknet-mainnet.blastapi.io/<project_id>/builder/getNFTCollection?
Query Parameters
Name | Type | Value |
---|---|---|
contractAddress | String |
Last updated