JSPM

@zondax/ledger-cosmos-js

4.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7526
  • Score
    100M100P100Q148784F
  • License Apache-2.0

Node API for Cosmos App (Ledger Nano S/S+/X)

Package Exports

  • @zondax/ledger-cosmos-js
  • @zondax/ledger-cosmos-js/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zondax/ledger-cosmos-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@zondax/ledger-cosmos-js

zondax

License Main npm version

This package provides a basic client library to communicate with a Tendermint/Cosmos 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 + message + (HRP)

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.

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

Who we are?

We are Zondax, a company pioneering blockchain services. If you want to know more about us, please visit us at zondax.ch