computeRarity - SDK
Get the rarity of each attribute of an NFT.
Don’t have an API key?
Start using this method in your app today. Get started for free
Description
Get the rarity of each attribute of an NFT.
Parameters
Response
NftAttributeRarity
response 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 computeRarity
method:
-
NFT marketplaces: NFT marketplaces such as OpenSea, Rarible, and SuperRare use the
computeRarity
method to calculate the rarity score of different NFTs, which 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.
Related Methods
Here are the methods related to computeRarity
:
-
getNftMetadataBatch: Gets the NFT metadata for multiple NFT tokens.
-
getNftMetadata: Gets the metadata associated with a given NFT.