getAllAddresses()
Othent JS SDK getAllAddresses() function
API
getAllAddresses(): Promise<B64UrlString[]>;return Promise<B64UrlString[]>
return Promise<B64UrlString[]>Example usage
import { Othent } from "@othent/kms";
const othent = new Othent({ ... });
// Make sure the user is authenticated, or prompt them to authenticate:
await othent.requireAuth();
// Obtain the user's wallet addresses:
const addresses = await othent.getAllAddresses();
console.log(`Your wallet addresses are ${ addresses.join(', ') }.`);Last updated