Nihilist Postmodern Mistake
    Wondering what’s next for npm?Check out our public roadmap! »

    ledger-sdk

    2.1.0 • Public • Published

    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()

    Keywords

    none

    Install

    npm i ledger-sdk

    DownloadsWeekly Downloads

    2

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    2.02 MB

    Total Files

    15

    Last publish

    Collaborators

    • avatar