Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ledger-sdk

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ledger-sdk

Ledger SDK

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

ledger-sdk

Ledger SDK for Chrome browser

TODO

  • Add support for Node.js / Electron

Install

npm i ledger-sdk

Usage

import LedgerSDK from 'ledger-sdk'

const ledger = new LedgerSDK()

ledger.on('open', data => {
  console.log(`${data.symbol} open`, data)
})

ledger.on('BTC:open', data => {
  console.log('BTC legacy 0/0', data.legacy.getAddress('0/0'))
  console.log('BTC segwit 0/0', data.segwit.getAddress('0/0'))
})
ledger.on('BTC:close', () => console.log('BTC close'))

ledger.on('LTC:open', data => console.log('LTC open', data))
ledger.on('LTC:close', () => console.log('LTC close'))

ledger.start()

FAQs

Package last updated on 05 Oct 2018

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