How to use the @ledgerhq/hw-transport-node-hid-singleton.create function in @ledgerhq/hw-transport-node-hid-singleton

To help you get started, we’ve selected a few @ledgerhq/hw-transport-node-hid-singleton examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArkEcosystem / desktop-wallet / src / renderer / services / ledger-service.js View on Github external
async listenForLedger () {
    if (this.listeningForLedger) {
      return
    }

    this.listeningForLedger = true
    this.transport = await LedgerTransport.create()
    this.ledger = new ArkLedger(this.transport)
    this.listeningForLedger = false
  }

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

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

MIT
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis