Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-transport

Package Overview
Dependencies
Maintainers
18
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport

Ledger Hardware Wallet common interface of the communication layer

  • 6.30.3-start-exchange.0
  • start-exchange
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
218K
decreased by-8.72%
Maintainers
18
Weekly downloads
 
Created

What is @ledgerhq/hw-transport?

@ledgerhq/hw-transport is a JavaScript library that provides a set of transport methods to communicate with Ledger hardware wallets. It supports various transport protocols such as USB, WebUSB, and Bluetooth, allowing developers to interact with Ledger devices in a secure and efficient manner.

What are @ledgerhq/hw-transport's main functionalities?

USB Transport

This feature allows you to connect to a Ledger device using USB. The code sample demonstrates how to establish a connection and then close it.

const Transport = require('@ledgerhq/hw-transport-node-hid').default;

async function connectLedger() {
  const transport = await Transport.create();
  console.log('Connected to Ledger via USB');
  await transport.close();
}

connectLedger();

WebUSB Transport

This feature allows you to connect to a Ledger device using WebUSB. The code sample demonstrates how to establish a connection and then close it.

const TransportWebUSB = require('@ledgerhq/hw-transport-webusb').default;

async function connectLedgerWebUSB() {
  const transport = await TransportWebUSB.create();
  console.log('Connected to Ledger via WebUSB');
  await transport.close();
}

connectLedgerWebUSB();

Bluetooth Transport

This feature allows you to connect to a Ledger device using Bluetooth. The code sample demonstrates how to establish a connection and then close it.

const TransportBLE = require('@ledgerhq/hw-transport-ble').default;

async function connectLedgerBLE() {
  const transport = await TransportBLE.create();
  console.log('Connected to Ledger via Bluetooth');
  await transport.close();
}

connectLedgerBLE();

Other packages similar to @ledgerhq/hw-transport

Keywords

FAQs

Package last updated on 31 Jan 2024

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