Skip to Content
HardwareBasic APIGet Features (deprecated)
On this page

Get Features

Deprecated. Protocol V1 only. Use getDeviceState for Protocol V1 and V2. Classic / Mini / Touch / Pro can still call this method; Pro 2 and Neo reject it.

Get device features

Read the legacy Protocol V1 features projection. New code should read getDeviceState (payload.identity.deviceId).

const response = await HardwareSDK.getFeatures(connectId);

This method reads a legacy features projection. Do not use it as a navigation or unlock API, and do not depend on it to return the device to its home screen.

Params

Optional common params

Example

const response = await HardwareSDK.getFeatures(connectId);

Result

{ success: true, payload: { major_version: number, // major version number minor_version: number, // middle version number patch_version: number, // patch version number bootloader_mode: null, device_id: string, pin_protection: boolean, passphrase_protection: boolean, // enable passphrase language: string, label: string, // device name initialized: boolean, // device initialization status model: string, safety_checks: string, ble_name: string, // bluetooth name ble_ver: string, // bluetooth firmware version ble_enable: string, se_enable: boolean, se_ver: string, backup_only: boolean, onekey_version: string, // firmware Version onekey_serial: string, // device Serial Number bootloader_version: string, // bootloader version } }

Error

{ success: false, payload: { error: string, // error message code?: string | number // error code } }
Last updated on