Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 786 Bytes

get-active-address.md

File metadata and controls

31 lines (20 loc) · 786 Bytes
description
Getting address of active web wallet on Arweave

Get Active Address

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 %}

Basic Syntax

The function is called as follows:

import { ArConnect } from 'arweavekit/auth'

const address = await ArConnect.getActiveAddress();

Returned Data

The function call returns the following data:

'WALLET_ADDRESS'
  • address: string : The wallet address of the active web wallet.