Get wallet names
ArConnect Injected API getWalletNames() function
In ArConnect, each wallet has a nickname. This is either the user's ANS name, or a user-given nickname. To provide better UX, you can retrive these names and display them for the user, so they can easily recognize which wallet they're using. The getWalletNames()
function returns an object, where the object keys are the wallet addresses and the values are the nicknames.
Note: This function requires the ACCESS_ALL_ADDRESSES
permission.
Example usage
Last updated