POST getNFTCollectionBatch
Get collection data for multiple NFT contract addresses.
How to use getNFTCollectionBatch method ?
Below, you'll find an in-depth guide that provides a comprehensive explanation of how to utilize the getNFTCollectionBatch method effectively using Blast.
Parameters
Below, you can find the query parameters accepted by the method.
Parameter | Type | Description |
---|---|---|
contractAddress* | array<string> | The NFT contract addresses |
Returns
Parameter | Type | Description |
---|---|---|
count | number | Number of records returned in the current page |
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 | NFTBalance object(optional) | The balance information associated with the owner of the collection (see getNFTCollectionBatch method for more details) |
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 getNFTCollectionBatch
In this section, you can find an illustrative example of a request made to retrieve the collection data for multiple NFT objects using the getNFTCollectionBatch 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 array of NFTCollection objects
POST
https://starknet-mainnet.blastapi.io/<project_id>/builder/getNFTCollectionBatch
Query Parameters
Name | Type | Value |
---|---|---|
contractAddresses | String |
Last updated