Comment on page
Get Active Address
Getting address of active web wallet on Arweave
The
getActiveAddress
function fetches the address of the active web wallet.The
ACCESS_ADDRESS
permission must be granted either while calling connect()
or getPermissions()
in order to successfully use this function. Read more about permissions here. 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.
Last modified 2mo ago