Get active address
Wander Injected API getActiveAddress() function
Example usage
// connect to the extension
await window.arweaveWallet.connect(["ACCESS_ADDRESS"]);
// obtain the user's wallet address
const userAddress = await window.arweaveWallet.getActiveAddress();
console.log("Your wallet address is", userAddress);Last updated
Was this helpful?