GitHub, Ledger Devs Discord, Developer Portal
Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses only node-hid
. Does not provide USB events.
Extends Transport
node-hid Transport minimal implementation
-
device
HID.HID -
$1
{context: TraceContext?, logType: LogType?} (optional, default{}
)-
$1.context
-
$1.logType
-
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-noevents";
...
TransportNodeHid.create().then(transport => ...)
Exchange with the device using APDU protocol.
-
apdu
Buffer
Returns Promise<Buffer> a promise of apdu response
release the USB device.
Returns Promise<void>
Returns Promise<any>
-
observer
Observer<DescriptorEvent<any>>
Returns Subscription
if path="" is not provided, the library will take the first device