Nostr
Nostr Provider is used to call UKey Wallet's Nostr account capabilities in web pages, such as reading public keys, signature events, Schnorr signatures, and message encryption and decryption.
Mini Demo
const provider = window?.$ukey?.nostr || window?.nostr;
if (!provider) throw new Error("UKey Wallet Nostr Provider not detected");
const pubkey = await provider.getPublicKey();
// Sample: Signature Event (fill in your own event fields)
// reference code: const signed = await provider.signEvent(event)
Events
Top Errors
4001: User refuses authorization or signature.- Invalid inputs: The event structure or signature input needs to conform to NIP-07 conventions.