Skip to content

Instantly share code, notes, and snippets.

@EricLarch
Last active Aug 29, 2015
Embed
What would you like to do?
JS recipes for Ledger Nano Chrome application (execution in the app console)
// Go to Coinkite application
ledger.app.router.go("/apps/coinkite/dashboard/index")
// n is the number of addresses to derive
ledger.wallet.pathsToAddresses(_(_.range(ledger.wallet.Wallet.instance.getAccount(0).getCurrentPublicAddressIndex(), ledger.wallet.Wallet.instance.getAccount(0).getCurrentPublicAddressIndex() + n)).map(function (i) {return "44'/0'/0'/0/" + i;}), function (a) { console.log(_.values(a)); })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment