Scores Methods
Retrieve reputation scores and category breakdowns for Polkadot addresses.
Available Methods
getScores()
Get all reputation scores for a user
getCategoryScore()
Get a specific category score
getScores()
Retrieves all reputation scores for a user, including total score and category breakdown.
Usage
const scores = await client.getScores(address);Parameters
address
string
Yes
Polkadot address of the user
signal
AbortSignal
No
Optional abort signal for request cancellation
Response Type
interface UserScores {
address: string;
totalScore: number;
calculatedAt: string; // ISO 8601 date
categories?: Record<string, CategoryScore>;
source?: 'app' | 'api';
}
interface CategoryScore {
score: number;
reason: string;
title: string;
}Example
Example Response
Available Categories
longevity
Account Longevity
Account age and history
txCount
Transaction Count
On-chain transaction volume
governance
Governance
Governance participation
identity
Identity
On-chain identity verification
uniqueInteractions
Unique Interactions
Network diversity
stakingRewards
Staking
Staking activity
getCategoryScore()
Retrieves a specific category score with detailed breakdown and scoring reasons.
Usage
Parameters
address
string
Yes
Polkadot address of the user
categoryKey
string
Yes
Category identifier (e.g., "longevity")
signal
AbortSignal
No
Optional abort signal for request cancellation
Response Type
Example
Example Response
Error Handling
Request Cancellation
Related
Last updated
