ISMEProfile
ISMEProfile
is used to manage the profile of DID users, and an instance of ISMEProfile
can be accessed by client.profile
Method
info
Get the Profile of a DID
Type
interface ProfileModel {
name: string
avatar: string
bio: string
url: string
gender: string
location: string
}
class ISMEProfile {
info(identifier?: string): Promise<WithMeta<ProfileModel>>
}
Details
If identifier
is not passed, SDK will query the current logged in DID.
update
update profile
Type
class ISMEProfile {
update(profile: Partial<ProfileModel>): Promise<void>
}