getWalletNames()
Othent JS SDK getWalletNames() function
Similarly to ArConnect, each wallet in Othent has a nickname. This is either:
The user's ANS name.
A platform + email identifying label (e.g.
Google (email@gmail.com)
,Twitter (email@outlook.com)
...).
To provide better UX, you can retrieve these names from the active (authenticated) user account and display them to make it easier for the user to recognize which wallet they're using.
Othent does not currently support creating/storing more than one wallet associated to the same account, so this function will always return exactly one wallet address.
API
return Promise<Record<B64UrlString, string>>
return Promise<Record<B64UrlString, string>>
A Promise
containing an object that maps each wallet addresses of the active user to their nickname, or an empty Object
if the user is not authenticated.
Example usage
Last updated