Skip to Content
dApps
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

Open example 

Last updated on