Profile Methods
Retrieve user profile information.
getProfile()
Get a user's complete profile including identities and social links.
Usage
const profile = await client.getProfile(address);Parameters
Parameter
Type
Required
Description
address
string
Yes
Polkadot address of the user
signal
AbortSignal
No
Optional abort signal for request cancellation
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
