Skip to Content
We're improving our docs. Share your experience and help shape what comes next.
DocumentationDevice interactionBeginner's guidesAdd BLE and USB support for Flex and Stax

Add BLE and USB support for Flex and Stax

DMK

Prerequisites

Device Management Kit: v0.4.0 (and later)

Implementation

import { DeviceManagementKitBuilder } from "@ledgerhq/device-management-kit"; import { webBleTransportFactory } from "@ledgerhq/device-transport-kit-web-ble"; import { webHidTransportFactory } from "@ledgerhq/device-transport-kit-web-hid"; const dmk = new DeviceManagementKitBuilder() .addTransport(webBleTransportFactory) .addTransport(webHidTransportFactory) .build();

Find more information here.

LedgerJS

Prerequisites

LedgerJS transport libraries: v8.3.0 (and later)

Implementation

import TransportBLE from "@ledgerhq/hw-transport-web-ble"; import TransportUSB from "@ledgerhq/hw-transport-web-usb"; // Example of connecting to a device via BLE const transportBLE = await TransportBLE.create(); const ethAppBLE = new AppEth(transportBLE); // Example of connecting to a device via USB const transportUSB = await TransportUSB.create(); const ethAppUSB = new AppEth(transportUSB);

Find more information here.

Custom Integration

Use the identifiers for devices and transport as describred in the reference section.

Last updated on
Ledger
Copyright © Ledger SAS. All rights reserved. Ledger, Ledger Stax, Ledger Flex, Ledger Nano, Ledger Nano S, Ledger OS, Ledger Wallet, [LEDGER] (logo), [L] (logo) are trademarks owned by Ledger SAS.