JSPM

@ledgerhq/hw-transport-web-ble

6.27.14-next.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38305
  • Score
    100M100P100Q190997F
  • License Apache-2.0

Ledger Hardware Wallet Web Bluetooth implementation of the communication layer

Package Exports

  • @ledgerhq/hw-transport-web-ble
  • @ledgerhq/hw-transport-web-ble/lib-es/TransportWebBLE.js
  • @ledgerhq/hw-transport-web-ble/lib/TransportWebBLE.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/hw-transport-web-ble) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-transport-web-ble

Allows to communicate with Ledger Hardware Wallets.

[Web] (Bluetooth)check browser support.


Are you adding Ledger support to your software wallet?

You may be using this package to open a Bluetooth connection between your web 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

BluetoothTransport

Extends Transport

react-native bluetooth BLE implementation

Parameters

  • device Device
  • writeCharacteristic Characteristic
  • notifyObservable Observable<any>
  • deviceModel DeviceModel

Examples

import BluetoothTransport from "@ledgerhq/hw-transport-web-ble";

exchange

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

observeAvailability

observe event with { available: bool, type: string } (available is generic, type is specific) an event is emit once and then each time it changes

Parameters
  • observer any

listen

Scan for Ledger Bluetooth devices. On this web implementation, it only emits ONE device, the one that was selected in the UI (if any).

Parameters
  • observer any

open

open a bluetooth device.

Parameters
  • deviceOrId (Device | string)

disconnect

globally disconnect a bluetooth device by its id.

Parameters
  • id any