Skip to main content

Profiles

Find and load a single profile#

flatApi.subsocial.findProfile(id: AnyAccountId): Promise<ProfileData | undefined>

Example:

flatApi.subsocial.findProfile('3osmnRNnrcScHsgkTJH1xyBF5kGjpbWHsGrqM31BJpy4vwn8')

๐Ÿ†ƒ AnyAccountId: AccountId | string

๐Ÿ†ƒ ProfileData: CommonData < SocialAccountWithId, ProfileContent > & { profile?: Profile }

Find and load an array of profiles#

flatApi.subsocial.findProfiles(ids: AnyAccountId[]): Promise<ProfileData[]>

Example:

flatApi.subsocial.findProfiles([ '3osmnRNnrcScHsgkTJH1xyBF5kGjpbWHsGrqM31BJpy4vwn8' ])

๐Ÿ†ƒ AnyAccountId: AccountId | string

๐Ÿ†ƒ ProfileData: CommonData < SocialAccountWithId, ProfileContent > & { profile?: Profile }