Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 847 Bytes

get-all-addresses.md

File metadata and controls

34 lines (23 loc) · 847 Bytes
description
Get addresses of web wallets on Arweave

Get All Addresses

The getAllAddresses function fetches the wallet addresses of the web wallets in the browser extension.

{% hint style="info" %} The ACCESS_ALL_ADDRESSES 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 response = await ArConnect.getAllAddresses();

Returned Data

The function call returns the following data:

[
    'WALLET_ADDRESS_1',
    'WALLET_ADDRESS_2'
]
  • walletAddresses: array: A list of all the added wallet addresses.