getSocialProfiles

Fetches the wallet's available social profiles.

Example

import { getProfiles } from "thirdweb/social";
const profiles = await getProfiles({
address: "0x...",
client,
});
function getSocialProfiles(args: {
address: string;
client: ThirdwebClient;
}): Promise<SocialProfiles>;

Parameters

The arguments to use when fetching the social profiles.

Type

let args: { address: string; client: ThirdwebClient };

Returns

let returnType: Array<{
avatar?: string;
bio?: string;
metadata?: FarcasterProfile | LensProfile | EnsProfile;
name?: string;
type: "farcaster" | "lens" | "ens";
}>;

A promise resolving to the retrieved social profiles for different protocols. If a profile is not available for a protocol, the value will be null .