User
JavaScript Widget User API
Get user ID
Method Name
Description
Parameters
Return Values
window.chatWidgetApi.getUserId
Get the user id
N/A
userID
Get User ID from wallet address
Method Name
Description
Parameters
Return Values
window.chatWidgetApi.getUidByAddress
Get user ID by wallet address
wallet address
userId
Get user information
Method Name
Description
Parameters
Return Values
window.chatWidgetApi.getUserData
Get user information
N/A
User info: avatar_url, displayname, signature, wallet_address
Log Out
Method Name
Description
Parameters
Return Values
window.chatWidgetApi.logout
Log out of the current session
callback (optional): Callback after logging out
N/A
Last updated