nft-trust-score
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i nft-trust-score

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

12.3 kB

Total Files

15

Last publish

Collaborators

  • fjij