@blooo/ledger-thorchain-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@blooo/ledger-thorchain-js

This package provides a basic client library to communicate with the THORChain App running in a Ledger Nano S/S+/X devices

We recommend using the npmjs package in order to receive updates/fixes.

Available commands

Operation Response Command
getVersion app version ---------------
publicKey pubkey path (legacy command)
getAddressAndPubKey pubkey + address path + ( showInDevice )
showAddressAndPubKey signed message path
appInfo name, version, flags, etc ---------------
deviceInfo fw and mcu version, id, etc Only available in dashboard
sign signed message path + transaction type + message
sign signed message path + transaction type + message

getAddress command requires that you set the derivation path (account, change, index) and has an option parameter to display the address on the device. By default, it will retrieve the information without user confirmation.

sign command requires that you specify the transaction type, '0' for json transaction

Testing with real devices

It is possible to test this package with a real Ledger Nano device. To accomplish that, you will need to follow these steps:

  • Install the application in the Ledger device
  • Install the dependencies from this project
  • Run tests
yarn install
yarn test:integration

Package Sidebar

Install

npm i @blooo/ledger-thorchain-js

Weekly Downloads

9

Version

1.0.1

License

Apache-2.0

Unpacked Size

98 kB

Total Files

18

Last publish

Collaborators

  • n4l5u0r