@ledgerhq/hw-transport-node-hid-noevents
TypeScript icon, indicating that this package has built-in type declarations

6.29.6 • Public • Published

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

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

Package Sidebar

Install

npm i @ledgerhq/hw-transport-node-hid-noevents

Weekly Downloads

43,764

Version

6.29.6

License

Apache-2.0

Unpacked Size

67.9 kB

Total Files

17

Last publish

Collaborators

  • thomas.coudray
  • ldg-github-ci
  • aboissiere
  • vbouzon
  • gbrahm-ledger
  • sergii-shkolin
  • phenry-ledger