Profile Methods
getProfile()
Usage
const profile = await client.getProfile(address);Parameters
Parameter
Type
Required
Description
Response Type
interface UserProfile {
address: string;
displayName?: string;
avatarUrl?: string;
bio?: string;
socialLinks?: Record<string, string>;
polkadotIdentities?: PolkadotIdentity[];
nftCount?: number;
source?: 'app' | 'api';
}
interface PolkadotIdentity {
address: string;
display?: string;
legal?: string;
web?: string;
email?: string;
twitter?: string;
github?: string;
matrix?: string;
discord?: string;
riot?: string;
judgements?: Array<{ index: number; judgement: string; _id?: string }>;
role?: string;
nonce?: number;
}Example
Example Response
Working with Identities
Check for Verified Identity
Get Primary Identity Display Name
Aggregate Social Links
Error Handling
Request Cancellation
Complete Example
Related
Last updated
