getPublicKey
Method
async function getPublicKey(): string
Response
returns a public key as hex
Example
const provider = (window.$onekey && window.$onekey.nostr) || window.nostr;
const pubkey = async provider.getPublicKey()
Demo
Last updated
Was this helpful?