Skip to main content

Documentation Index

Fetch the complete documentation index at: https://core.anylayer.org/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Integrate ZKScore into NFT platforms to verify collectors, reward traders, and build community reputation.

Use Cases

Verified Collector Badge

Display verified collector status based on ZKScore:
async function isVerifiedCollector(address) {
  const score = await zkScore.getScore(address);
  const breakdown = await zkScore.getScoreBreakdown(address);
  
  return {
    isVerified: breakdown.nft >= 200,
    tier: getTier(breakdown.nft),
    score: breakdown.nft
  };
}

function getTier(nftScore) {
  if (nftScore >= 800) return 'Diamond';
  if (nftScore >= 600) return 'Platinum';
  if (nftScore >= 400) return 'Gold';
  if (nftScore >= 200) return 'Silver';
  return 'Bronze';
}

Marketplace Fee Discounts

Reduce fees for high-reputation traders:
async function calculateMarketplaceFee(seller, salePrice) {
  const score = await zkScore.getScore(seller);
  const baseFee = salePrice * 0.025; // 2.5% base fee
  
  if (score.total >= 700) return baseFee * 0.5; // 50% discount
  if (score.total >= 500) return baseFee * 0.75; // 25% discount
  
  return baseFee;
}

Best Practices

  1. Tier System: Create clear collector tiers
  2. Visual Badges: Display reputation visually
  3. Fee Incentives: Reward high-reputation users
  4. Collection Verification: Verify authentic collectors
  5. Community Building: Foster trusted communities