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?