For the complete documentation index, see llms.txt. This page is also available as Markdown.

getPublicKey

Method

async function getPublicKey(): string;

Response

The hex-encoded version of your public key.

Code Example

const publicKey = await window.nostr.getPublicKey();

Last updated

Was this helpful?