Alby Developer Guide
Alby Browser Extension APIs
User Guide
Developer Portal
Ask or search…
⌃
K
Links
📚
Overview
window.webln
👀
See Webln.guide
window.liquid
enable
🆕
isEnabled
getAddress
signPset
🆕
on
🆕
off
window.nostr
getPublicKey
signEvent
nip04.encrypt
nip04.decrypt
signSchnorr
🆕
on
🆕
off
window.webbtc
enable
🆕
isEnabled
getAddress
signPsbt
🆕
on
🆕
off
window.alby
enable
🆕
isEnabled
➕
Adding accounts
Powered By
GitBook
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