description |
---|
Getting address of active web wallet on Arweave |
The getActiveAddress
function fetches the address of the active web wallet.
{% hint style="info" %}
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.
{% endhint %}
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.