Skip to content

fjij/nft-trust-score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Trust Score

Find out how trustworthy an NFT project is relative to another.

Try out the live demo!

View the demo source.

Usage

import { getCollectionDataset, computeTrustScore } from "nft-trust-score";

const Blitmap = "0x8d04a8c79cEB0889Bdd12acdF3Fa9D207eD3Ff63";
const Monarchs = "0xc729Ce9bF1030fbb639849a96fA8BBD013680B64";

const BlitmapData = await getCollectionDataset(Blitmap);
const MonarchsData = await getCollectionDataset(Monarchs);

const trustScore = computeTrustScore(BlitmapData, MonarchsData);
// {
//   mutualOwnerCount: 37,
//   mutualOriginatorCount: 33,
//   mutualOwnerOriginatorCount: 13
// }

API

getCollectionDataset(collectionAddress: string, log = false)

  • Get the dataset for the collection with the specified contract address. Log progress if log is true.

computeTrustScore(datasetA, datasetB)

  • Compute the trust score between two datasets

Types

TrustScore

  • mutualOwnerCount: The number of mutual token owners between two collections.
  • mutualOriginatorCount: The number of mutual token originators (account that initiated the mint of a token) between two collections.
  • mutualOwnerOriginatorCount: The number of mutual accounts that are both owners and originators in both collections.

About

Use trust graphs to verify the legitimacy of NFTs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published