Skip to main content

Overview

Complete example showing full ZKScore SDK integration in a production application.

Implementation

import { ZKScoreClient } from '@zkscore/sdk';

const client = new ZKScoreClient({
  apiKey: process.env.ZKSCORE_API_KEY,
  environment: 'mainnet'
});

async function getUserProfile(identity) {
  const [score, identityData, achievements] = await Promise.all([
    client.getScore(identity),
    client.getIdentity(identity),
    client.getAchievements(identity)
  ]);
  
  return { score, identity: identityData, achievements };
}