Skip to main content

Overview

Replace or augment NFT-gated access with reputation-based gating using ZKScore.

Implementation

async function checkAccess(user) {
  const score = await zkScore.getScore(user);
  const nftBalance = await nftContract.balanceOf(user);
  
  // Access if: owns NFT OR has high reputation
  return nftBalance > 0 || score.total >= 700;
}

Benefits

  1. Broader Access: Enable access beyond NFT holders
  2. Merit-Based: Reward reputation not just wealth
  3. Flexible Gating: Combine multiple criteria
  4. Community Building: Foster engaged communities