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 display directly in wallet applications to show users their reputation alongside balances.

Implementation

async function getWalletDisplay(address) {
  const [balance, score, identity] = await Promise.all([
    getBalance(address),
    zkScore.getScore(address),
    zkScore.getIdentity(address)
  ]);
  
  return {
    address,
    zksId: identity?.name || null,
    balance,
    zkScore: score.total,
    tier: getScoreTier(score.total)
  };
}