computeRarity - SDK
Returns the floor prices of an NFT contract by marketplace.
Don’t have an API key?
Start using this method in your app today. Get started for free
Please note that this endpoint is only available on Ethereum (mainnet) & Polygon (mainnet & mumbai)
Description
Get the rarity of each attribute of an NFT.
Parameters
Response
ComputeRarityResponse
object properties
rarities
response properties
Example Request and Response
Prerequisite: You must 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 computeRarity
method:
-
NFT marketplaces: NFT marketplaces such as OpenSea, Rarible, and SuperRare use the
computeRarity
method to calculate the rarity score of different NFTs helps determine their value in the marketplace. -
NFT collections: NFT collections such as CryptoKitties and CryptoPunks use the
computeRarity
method to determine the rarity of each NFT in their collection, which adds to the overall uniqueness and value of the collection. -
Gaming applications: Gaming applications that use NFTs often use the
computeRarity
method to calculate the rarity of different game items, such as weapons or armor, which can affect their in-game performance and value.