Comment on page
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.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 here. The function is called as follows:
import { ArConnect } from 'arweavekit/auth'
const response = await ArConnect.getActivePublicKey();
The function call returns the following data:
[
'ACTIVE_PUBLIC_KEY'
]
activePublicKey: array
: The key of the active web wallet.
Last modified 2mo ago