Get Active Public Key

Get public key of active web wallet on Arweave

The getActivePublicKey function fetches the public key of the active web wallet.

circle-info

The ACCESS_PUBLIC_KEY permission must be granted either while calling connect() or getPermissions() in order to successfully use this function. Read more about permissions herearrow-up-right.

Basic Syntax

The function is called as follows:

import { ArConnect } from 'arweavekit/auth'

const response = await ArConnect.getActivePublicKey();

Returned Data

The function call returns the following data:

[
    'ACTIVE_PUBLIC_KEY'
]
  • activePublicKey: array: The key of the active web wallet.

Last updated

Was this helpful?