GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet Cosmos JavaScript bindings.
You may be using this package to communicate with the Cosmos Nano App.
For a smooth and quick integration:
- See the developers’ documentation on the Developer Portal and
- Go on Discord to chat with developer support and the developer community.
Cosmos API
-
transport
Transport -
scrambleKey
string (optional, defaultAPP_KEY
)
import Cosmos from "@ledgerhq/hw-app-cosmos";
const cosmos = new Cosmos(transport)
get Cosmos address for a given BIP 32 path.
cosmos.getAddress("44'/60'/0'/0/0", "cosmos").then(o => o.address)
Returns Promise<{publicKey: string, address: string}> an object with a publicKey, address and (optionally) chainCode