Guide
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide helps users understand how to use the OneKey provider API to easily build network applications using the Nostr protocol.
OneKey provider API is specified by .
Download the . Install the OneKey browser extension.
The OneKey browser extension injects Provider API
into visited websites.
Two types of APIs are provided: window.nostr
and window.$onekey.nostr
.
It is recommended to use window.$onekey.nostr
.
Both APIs have the same functionality, just different names.
Before you start using Nostr protocol you need to check for browser support by checking if the variable window.nostr
is defined:
Identify required functionalities, call relevant interfaces
Key Operations: Such as account switching
More Interfaces:
More Information: