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 gaming platforms to track player reputation, enable skill-based matchmaking, and reward achievements.

Implementation

async function getPlayerProfile(address) {
  const score = await zkScore.getScore(address);
  const achievements = await zkScore.getAchievements(address, { category: 'gaming' });
  
  return {
    address,
    gamingScore: score.breakdown.gaming,
    achievementCount: achievements.length,
    skillTier: getSkillTier(score.breakdown.gaming)
  };
}