Getting address of active web wallet on Arweave
Last updated 2 months ago
Was this helpful?
The getActiveAddress function fetches the address of the active web wallet.
getActiveAddress
The ACCESS_ADDRESS permission must be granted either while calling connect() or getPermissions() in order to successfully use this function. Read more about permissions .
ACCESS_ADDRESS
connect()
getPermissions()
The function is called as follows:
import { ArConnect } from 'arweavekit/auth' const address = await ArConnect.getActiveAddress();
The function call returns the following data:
'WALLET_ADDRESS'
address: string : The wallet address of the active web wallet.
address: string