Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Latest commit

 

History

History

hw-transport-node-hid-noevents

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Github, Ledger Devs Slack

@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

Examples

import TransportNodeHid from "@ledgerhq/hw-transport-node-hid-noevents";
...
TransportNodeHid.create().then(transport => ...)

exchange

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

close

release the USB device.

Returns Promise<void>

isSupported

Returns Promise<boolean>

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

Parameters