benfenGetAddress

Benfen: get address

Display requested address derived by given BIP32 path on device and returns it to caller. User is asked to confirm the export on OneKey.

Use requirement

  • Firmware version required

    • pro: 4.12.0

const result = await HardwareSDK.benfenGetAddress(connectId, deviceId, params);

Params

Optional common params

  • path - required string | Array<number> minimum length is 3. read more

  • showOnOneKey - optional boolean whether to display address on device

Returns

  • success: boolean - True if successful

  • payload:

    • address: string - Derived BFC format address

    • path: string - BIP32 path used

    • pub?: string - Public key if available

Example:

Result

Result with only one address

Result with bundle of addresses sorted by FIFO

Error

Last updated

Was this helpful?