Quick Start
This page gives a concise mental model for integrating OneKey hardware in the browser: initialize the SDK, discover devices, handle UI prompts, and make your first call. Code details live in the sub‑pages.
Scope: Web (browser) using WebUSB with @onekeyfe/hd-common-connect-sdk.
Setup & Init — Install the SDK, initialize early, and enable debug when needed.
Discover Devices — Authorize (WebUSB), enumerate with
searchDevices, understand identifiers (connectId,device_id), and resolvedevice_idviagetFeatures.PIN — Listen for
UI_EVENTand answerREQUEST_PINviauiResponse(prefer on‑device entry). See Config Event.Passphrase — Handle hidden wallet passphrase (on‑device or software entry, optional session caching).
First Command — Call a chain API (e.g.,
btcGetAddress) usingconnectId+device_id.
Next: choose a transport for your platform
WebUSB (browser) → WebUSB Connection Guide
iOS BLE (native) → iOS BLE
Android BLE (native) → Android BLE
React Native BLE (pure RN) → React Native BLE
Last updated
Was this helpful?