Actions19
- Block Actions
- DeFi Actions
- NFT Actions
- Token Actions
- Transaction Actions
- Wallet Actions
NFT → Get Collection Stats
AI-generatedOverview
This node operation fetches statistical data for a specific NFT collection on a selected blockchain. It is useful for users who want to analyze the performance, activity, and other metrics of an NFT collection, such as total sales, floor price, volume, and ownership distribution. For example, a user can retrieve collection stats for an NFT contract address on Ethereum or Polygon to monitor market trends or investment opportunities.
Use Case Examples
- Retrieve collection stats for an NFT collection on Ethereum to analyze its market performance.
- Get statistics for an NFT collection on Polygon to monitor ownership and sales data.
Properties
| Name | Meaning |
|---|---|
| Chain | The blockchain network to query for the NFT collection stats, e.g., Ethereum, Polygon, BSC. |
| NFT Contract Address | The contract address of the NFT collection to retrieve statistics for. |
| Additional Fields | Optional parameters to customize the request, including limit on results, pagination cursor, whether to include metadata, and number format for the response. |
Output
JSON
totalVolume- Total trading volume of the NFT collection.floorPrice- Current floor price of the NFT collection.totalSales- Total number of sales for the NFT collection.owners- Number of unique owners of the NFT collection.averagePrice- Average price of NFTs sold in the collection.marketCap- Market capitalization of the NFT collection.operation- The operation performed, here 'getCollectionStats'.resource- The resource type, here 'nft'.chain- The blockchain network queried.timestamp- Timestamp when the data was retrieved.
Dependencies
- Moralis Web3 API
Troubleshooting
- Ensure the NFT contract address is correct and corresponds to the selected blockchain.
- Verify that the API key credential for Moralis is valid and has sufficient permissions.
- If no data is returned, check if the NFT collection exists on the specified chain and has available statistics.
- Common error messages include network errors, invalid API key, or resource not found. Verify network connectivity and credentials to resolve these.
Links
- Moralis NFT API - Get Collection Stats - Official Moralis documentation for the NFT collection stats endpoint.