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
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