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

Logo

Your bitcoin & nostr companion / from ๐Ÿ with ๐Ÿงก