On this page
getPublicKey
Method
declare function getPublicKey(): Promise<string>;Response
returns a public key as hex
Example
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;
const pubkey = await provider.getPublicKey()Demo
Last updated on