{"_id":"@bangjelkoski/ledgerhq-hw-app-cosmos","_rev":"1-810c536d71cbdbc2b6bf00c7c6ecf1c1","name":"@bangjelkoski/ledgerhq-hw-app-cosmos","dist-tags":{"latest":"6.30.4-beta.0"},"versions":{"6.30.4":{"name":"@bangjelkoski/ledgerhq-hw-app-cosmos","version":"6.30.4","keywords":["Ledger","LedgerWallet","atom","Cosmos","NanoS","Blue","Hardware Wallet"],"license":"Apache-2.0","_id":"@bangjelkoski/ledgerhq-hw-app-cosmos@6.30.4","maintainers":[{"name":"bangjelkoski","email":"bangjelkoskii@gmail.com"}],"homepage":"https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-cosmos","bugs":{"url":"https://github.com/LedgerHQ/ledger-live/issues"},"dist":{"shasum":"0167f37175934886170cafa30961fca7e50d5855","tarball":"https://registry.npmjs.org/@bangjelkoski/ledgerhq-hw-app-cosmos/-/ledgerhq-hw-app-cosmos-6.30.4.tgz","fileCount":17,"integrity":"sha512-FjGMRDvCdBEhOHz29ZIHtdeIQuyfYcaijaceZQBogtgT9sBOM2ZrYIrT6g+K4UFxl+vY5TqTkfCMf0ueZifoYA==","signatures":[{"sig":"MEYCIQDDCLGf/eVF/EQrexp/aI8TRi5nzal9Y64NFDTdYPBlogIhAOkFGhNwKNXDYJQxgBPYNpvM19dIVjf+0pa/1CEESoNN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58391},"main":"lib/Cosmos.js","types":"lib/Cosmos.d.ts","module":"lib-es/Cosmos.js","gitHead":"dd0dea64b58e5a9125c8a422dcffd29e5ef6abec","scripts":{"doc":"documentation readme src/** --section=API --pe ts --re ts --re d.ts","lint":"eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache","test":"jest","build":"tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es","clean":"rimraf lib lib-es","watch":"tsc --watch","lint:fix":"pnpm lint --fix","prewatch":"pnpm build","watch:es":"tsc --watch -m esnext --moduleResolution bundler --outDir lib-es","unimported":"unimported"},"_npmUser":{"name":"bangjelkoski","email":"bangjelkoskii@gmail.com"},"repository":{"url":"git+https://github.com/LedgerHQ/ledger-live.git","type":"git"},"_npmVersion":"10.8.2","description":"Ledger Hardware Wallet Cosmos Application API","directories":{},"_nodeVersion":"20.18.2","dependencies":{"bip32-path":"^0.4.2","@ledgerhq/errors":"workspace:^","@ledgerhq/hw-transport":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^4.4.1","ts-jest":"^29.1.1","ts-node":"^10.4.0","@types/jest":"^29.5.10","@types/node":"^22.10.10","documentation":"14.0.2","source-map-support":"^0.5.21","@ledgerhq/hw-transport-mocker":"workspace:^"},"_npmOperationalInternal":{"tmp":"tmp/ledgerhq-hw-app-cosmos_6.30.4_1740050578782_0.22502226359809896","host":"s3://npm-registry-packages-npm-production"}},"6.30.4-beta.0":{"name":"@bangjelkoski/ledgerhq-hw-app-cosmos","version":"6.30.4-beta.0","description":"Ledger Hardware Wallet Cosmos Application API","keywords":["Ledger","LedgerWallet","atom","Cosmos","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/LedgerHQ/ledger-live.git"},"bugs":{"url":"https://github.com/LedgerHQ/ledger-live/issues"},"homepage":"https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-cosmos","publishConfig":{"access":"public"},"main":"lib/Cosmos.js","module":"lib-es/Cosmos.js","types":"lib/Cosmos.d.ts","license":"Apache-2.0","dependencies":{"bip32-path":"^0.4.2","@ledgerhq/errors":"^6.19.1","@ledgerhq/hw-transport":"npm:@bangjelkoski/ledgerhq-hw-transport@^6.31.4-beta.0"},"devDependencies":{"@types/jest":"^29.5.10","@types/node":"^22.10.10","documentation":"14.0.2","jest":"^29.7.0","rimraf":"^4.4.1","source-map-support":"^0.5.21","ts-jest":"^29.1.1","ts-node":"^10.4.0","@ledgerhq/hw-transport-mocker":"^6.29.4"},"gitHead":"dd0dea64b58e5a9125c8a422dcffd29e5ef6abec","scripts":{"clean":"rimraf lib lib-es","build":"tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es","prewatch":"pnpm build","watch":"tsc --watch","watch:es":"tsc --watch -m esnext --moduleResolution bundler --outDir lib-es","doc":"documentation readme src/** --section=API --pe ts --re ts --re d.ts","lint":"eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache","lint:fix":"pnpm lint --fix","test":"jest","unimported":"unimported"},"_id":"@bangjelkoski/ledgerhq-hw-app-cosmos@6.30.4-beta.0","_integrity":"sha512-aL9h0/3JHQAFOFRpDbm3BcrZ5UU7zy12ZbOHvR3CqY1bEyae4HRoww7wPF9k8yAxev/dw3faPDzw+OJ4ebOzCw==","_resolved":"/private/var/folders/81/1f_q36hn2lv9zvbgjm_bfv140000gn/T/8ec79b3ff02a36bb25b9fa2669126012/bangjelkoski-ledgerhq-hw-app-cosmos-6.30.4-beta.0.tgz","_from":"file:bangjelkoski-ledgerhq-hw-app-cosmos-6.30.4-beta.0.tgz","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-aL9h0/3JHQAFOFRpDbm3BcrZ5UU7zy12ZbOHvR3CqY1bEyae4HRoww7wPF9k8yAxev/dw3faPDzw+OJ4ebOzCw==","shasum":"43da3354bf8cff95b726f5c8bdb2b599a3de765e","tarball":"https://registry.npmjs.org/@bangjelkoski/ledgerhq-hw-app-cosmos/-/ledgerhq-hw-app-cosmos-6.30.4-beta.0.tgz","fileCount":18,"unpackedSize":59531,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFaP703WXkKxNW3hJp26Ons6z/q0fHpEepcGyXFoy7z6AiEA7NnRojXa4/d25sqepTJV0GKCFwe+qd1Absn0QRC6/Zc="}]},"_npmUser":{"name":"bangjelkoski","email":"bangjelkoskii@gmail.com"},"directories":{},"maintainers":[{"name":"bangjelkoski","email":"bangjelkoskii@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ledgerhq-hw-app-cosmos_6.30.4-beta.0_1740052043427_0.13589603033181064"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-20T11:22:58.656Z","modified":"2025-02-20T11:47:23.755Z","6.30.4":"2025-02-20T11:22:58.970Z","6.30.4-beta.0":"2025-02-20T11:47:23.611Z"},"bugs":{"url":"https://github.com/LedgerHQ/ledger-live/issues"},"license":"Apache-2.0","homepage":"https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-app-cosmos","keywords":["Ledger","LedgerWallet","atom","Cosmos","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/LedgerHQ/ledger-live.git"},"description":"Ledger Hardware Wallet Cosmos Application API","maintainers":[{"name":"bangjelkoski","email":"bangjelkoskii@gmail.com"}],"readme":"<img src=\"https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png\" height=\"100\" />\n\n[GitHub](https://github.com/LedgerHQ/ledger-live/),\n[Ledger Devs Discord](https://developers.ledger.com/discord-pro),\n[Developer Portal](https://developers.ledger.com/)\n\n## @ledgerhq/hw-app-cosmos\n\nLedger Hardware Wallet Cosmos JavaScript bindings.\n\n***\n\n## Are you adding Ledger support to your software wallet?\n\nYou may be using this package to communicate with the Cosmos Nano App.\n\nFor a smooth and quick integration:\n\n*   See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/transport/overview/) and\n*   Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community.\n\n***\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n*   [Cosmos](#cosmos)\n    *   [Parameters](#parameters)\n    *   [Examples](#examples)\n    *   [getAddress](#getaddress)\n        *   [Parameters](#parameters-1)\n        *   [Examples](#examples-1)\n\n### Cosmos\n\nCosmos API\n\n#### Parameters\n\n*   `transport` **Transport**&#x20;\n*   `scrambleKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `APP_KEY`)\n\n#### Examples\n\n```javascript\nimport Cosmos from \"@ledgerhq/hw-app-cosmos\";\nconst cosmos = new Cosmos(transport)\n```\n\n#### getAddress\n\nget Cosmos address for a given BIP 32 path.\n\n##### Parameters\n\n*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a path in BIP 32 format\n*   `hrp` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** usually cosmos\n*   `boolDisplay` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**&#x20;\n\n##### Examples\n\n```javascript\ncosmos.getAddress(\"44'/60'/0'/0/0\", \"cosmos\").then(o => o.address)\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), address: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** an object with a publicKey, address and (optionally) chainCode\n","readmeFilename":"README.md"}