@ledgerhq/hw-transport-node-hid-noevents
v6.30.5
Published
Ledger Hardware Wallet Node implementation of the communication layer, using node-hid. without usb events
Downloads
220,704
Readme
GitHub, Ledger Devs Discord, Developer Portal
@ledgerhq/hw-transport-node-hid-noevents
Allows to communicate with Ledger Hardware Wallets.
[Node]/Electron (HID) – uses only node-hid
. Does not provide USB events.
API
Table of Contents
TransportNodeHidNoEvents
Extends Transport
node-hid Transport minimal implementation
Parameters
device
HID.HID$1
{context: TraceContext?, logType: LogType?} (optional, default{}
)$1.context
$1.logType
Examples
import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-noevents";
...
TransportNodeHid.create().then(transport => ...)
exchange
Exchange with the device using APDU protocol.
Parameters
apdu
Buffer
Returns Promise<Buffer> a promise of apdu response
close
release the USB device.
Returns Promise<void>
isSupported
list
Returns Promise<any>
listen
Parameters
observer
Observer<DescriptorEvent<any>>
Returns Subscription
open
if path="" is not provided, the library will take the first device