Badges Methods
Available Methods
Method
Description
getBadges()
Usage
const badges = await client.getBadges(address);Parameters
Parameter
Type
Required
Description
Response Type
interface UserBadges {
address: string;
badges: UserBadge[];
count: number;
source?: 'app' | 'api';
}
interface UserBadge {
badgeKey: string;
achievedLevel: number;
achievedLevelKey: string;
achievedLevelTitle: string;
earnedAt?: string; // ISO 8601 date
}Example
Example Response
Badge Level Keys
Level
Common Keys
Description
getBadge()
Usage
Parameters
Parameter
Type
Required
Description
Response Type
Example
Example Response
Common Badge Keys
Key
Title
Description
Filtering Badges
By Badge Key
By Level
Sort by Achievement Date
Error Handling
Related
Last updated
