User
JavaScript User APIs
Set Nickname
Name
Parameters Description
Response
setDisplayName(name, callback)
name: nick namecallback(optional):
N/A
Set Profile Image
Name
Parameters Description
Response
setAvatarUrl(url, callback)
url: new profile image URLcallback(optional):
N/A
Query Profile Information
Name
Parameters Description
Response
getProfileInfo(userId,info,callback)
userId: user idinfo(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
Name
Parameters Description
Response
getUidByAddress(addr)
addr: user wallet address;
userId: string | null
Last updated