OthentKMS getWalletNames() function

The getWalletNames() function returns the email address of the active user account.

Example Usage

To use the getWalletNames() function, import it from the @othent/kms package and call it within an asynchronous function as follows:

import { getWalletNames } from "@othent/kms";

const handleGetWalletNames = async () => {
  const res = await getWalletNames();
  console.log(res);
};

<aside> ⚠️ Note: A user must be logged in to an application to successfully call this function.

</aside>

Result

On successful execution, the function returns the email address of the connected user as follows:

"[email protected]"

Applications can then either display this address within their UI or use it as part of other operations.