getWalletNames()
Othent JS SDK getWalletNames() function
Last updated
Othent JS SDK getWalletNames() function
Last updated
Similarly to ArConnect, each wallet in Othent has a nickname. This is either:
The user's 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.
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.