Alby Developer Guide
Alby Browser Extension APIs
Ask or search…
K
Links
Comment on page

getPublicKey

Method
async function getPublicKey(): string;
Response
The hex-encoded version of your public key.
Code Example
const publicKey = await window.nostr.getPublicKey();
Last modified 3mo ago