New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nft-trust-score

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nft-trust-score

Find how "connected" two NFT projects are.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-82.35%
Maintainers
1
Weekly downloads
 
Created
Source

NFT Trust Score

Find how "connected" two NFT projects are.

Uses the Zora GraphQL API.

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

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.

FAQs

Package last updated on 07 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc