Nostr

Nostr integration via OneKey provider — getPublicKey, signEvent, signSchnorr, and more

Integrate Nostr capabilities using OneKey’s provider.

Minimal pattern

const provider = window?.$onekey?.nostr || window?.nostr
if (!provider) throw new Error('OneKey Nostr provider not detected')

const pubkey = await provider.getPublicKey()
// Example: sign an event (fill your own event fields)
// const signed = await provider.signEvent(event)

Events

  • See Events for account/network related updates

Common errors

  • 4001: user rejected

  • Invalid params: match NIP‑07 expectations

  • Use OneKey deeplinks when bridging from mobile web/WebViews

Last updated

Was this helpful?