New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@oasisprotocol/ionic-ledger-hw-transport-ble

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oasisprotocol/ionic-ledger-hw-transport-ble

Ledger Hardware Wallet Bluetooth BLE transport for Ionic

  • 6.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
89
increased by9.88%
Maintainers
6
Weekly downloads
 
Created
Source

ionic-ledger-hw-transport-ble

License CI test status

Ledger Hardware Wallet Bluetooth BLE transport for Ionic.

yarn add @oasisprotocol/ionic-ledger-hw-transport-ble

Pre-requisite

Minimal getting started

@oasisprotocol/ionic-ledger-hw-transport-ble works like any of @ledgerhq/hw-transport libraries.

The difference here is that the list() is costy and you likely don't want to always scan for devices, you would better save a selected device as "known" to suggest it to user later.

Important: you will also have to deal with specifics of Bluetooth BLE, for instance, you need to request the LOCATION permission on Android!

Here is a gist of the most important parts required.

Check for Bluetooth state

import BleTransport from "@oasisprotocol/ionic-ledger-hw-transport-ble";

// Check if @capacitor-community/bluetooth-le is setup
BleTransport.isSupported()

// Check for bluetooth status
BleTransport.isEnabled()

Scan for devices

const scannedDevices = BleTransport.list()

Connect to device

const [scannedDevice] = scannedDevices
const transport = await BleTransport.open(scannedDevice)

and now we can just use the transport like any other Ledger transport!

Keywords

FAQs

Package last updated on 27 May 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