Skip to main content

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)
  };
}