Skip to main content

Overview

The ZKScore JavaScript SDK provides comprehensive achievement management capabilities, including listing achievements, tracking progress, claiming rewards, and real-time updates. The SDK handles both ZKS IDs and wallet addresses seamlessly.
All achievement operations support both ZKS IDs and wallet addresses. The SDK automatically resolves ZKS IDs to their corresponding wallet addresses when needed.

Basic Achievement Operations

1. List All Achievements

2. Get User Achievements

3. Get Achievement Progress

4. Claim Achievement

Advanced Achievement Operations

1. Achievement Discovery

2. Achievement Analytics

3. Achievement Leaderboard

Real-time Achievement Updates

1. Subscribe to Achievement Updates

2. Achievement Notifications

Achievement Caching and Optimization

1. Achievement Caching

2. Batch Achievement Operations

Achievement Validation

1. Achievement Requirements Validation

2. Achievement Progress Tracking

Error Handling

1. Achievement-Specific Error Handling

2. Retry Logic for Achievement Operations

Best Practices

1. Achievement Monitoring

2. Achievement Analytics