Socket
Socket
Sign inDemoInstall

@ledgerhq/hw-transport-node-hid-singleton

Package Overview
Dependencies
Maintainers
20
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport-node-hid-singleton

Ledger Hardware Wallet Node implementation of the communication layer, using node-hid and node-usb


Version published
Weekly downloads
1.4K
decreased by-3.11%
Maintainers
20
Weekly downloads
 
Created
Source

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-transport-node-hid-singleton

Allows to communicate with Ledger Hardware Wallets.

[Node]/Electron (HID) – uses node-hid and node-usb. Keep transport opened and re-use it as a singleton, one device at a time on a computer but more robust implementation.


Are you adding Ledger support to your software wallet?

You may be using this package to open a USB connection between your desktop application and the device.

For a smooth and quick integration:

  • See the developers’ documentation on the Developer Portal and
  • Go on Discord to chat with developer support and the developer community.

API

Table of Contents

TransportNodeHidSingleton

Extends TransportNodeHidNoEvents

node-hid Transport implementation

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

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

isSupported
list
listen
Parameters
  • observer Observer<ListenDescriptorEvent>

Returns Subscription

autoDisconnect

convenience wrapper for auto-disconnect logic

Returns Promise<void>

disconnect

globally disconnect the transport singleton

open

if path="" is not provided, the library will take the first device

Returns Promise<TransportNodeHidSingleton>

Keywords

FAQs

Package last updated on 26 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc