Skip to main content

Overview

The ZKScore JavaScript SDK provides comprehensive score querying capabilities, including current scores, historical data, breakdowns, and real-time updates. The SDK handles both ZKS IDs and wallet addresses seamlessly.
All score operations support both ZKS IDs and wallet addresses. The SDK automatically resolves ZKS IDs to their corresponding wallet addresses when needed.

Basic Score Operations

1. Get Current Score

2. Get Score Breakdown

3. Get Score History

Advanced Score Operations

1. Score Comparison

2. Score Analytics

3. Score Leaderboard

Real-time Score Updates

1. Subscribe to Score Updates

2. Score Change Notifications

Score Caching and Optimization

1. Score Caching

2. Batch Score Queries

Error Handling

1. Score-Specific Error Handling

2. Retry Logic for Score Queries

Performance Optimization

1. Lazy Loading

2. Score Aggregation