Get active address
ArConnect Injected API getActiveAddress() function
In order to identify the user's wallet, your application might need to obtain their crypto address. Arweave addresses are derived from the user's public key. The
getActiveAddress()function returns the address that belongs to the wallet that is currently being used in ArConnect.
// connect to the extension
// obtain the user's wallet address
const userAddress = await window.arweaveWallet.getActiveAddress();
console.log("Your wallet address is", userAddress);