Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses node-hid
and usb
.
Extends Transport
node-hid Transport implementation
device
HID.HID
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
...
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<Array<string>>
delay
number
conditionToSkip
function (): boolean
observer
Observer<DescriptorEvent<string>>
Returns Subscription
if path="" is not provided, the library will take the first device
path
string