User

JavaScript User APIs

Set Nickname

NameParameters DescriptionResponse

setDisplayName(name, callback)

  • name: nick name

  • callback (optional):

N/A

Set Profile Image

NameParameters DescriptionResponse

setAvatarUrl(url, callback)

  • url: new profile image URL

  • callback (optional):

N/A

Query Profile Information

NameParameters DescriptionResponse

getProfileInfo(userId,info,callback)

  • userId: user id

  • info (optional): information requested (e.g. 'displayname', 'avatar_url')

  • callback (optional):

avatar_url: profile image

displayname: user nick name

wallet_address: user wallet address

Generate userId by wallet address

NameParameters DescriptionResponse

getUidByAddress(addr)

addr: user wallet address;

userId: string | null

Last updated