{"_id":"@blooo/hw-app-klaytn","_rev":"1-0322c7d1a4fc5c2220368e3e428bae6a","name":"@blooo/hw-app-klaytn","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@blooo/hw-app-klaytn","version":"0.1.0","description":"Ledger Hardware Wallet Klaytn Application API","keywords":["Ledger","LedgerWallet","Klaytn","KLAY","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/blooo-io/hw-app-klaytn.git"},"bugs":{"url":"https://github.com/blooo-io/hw-app-klaytn/issues"},"homepage":"https://github.com/blooo-io/hw-app-klaytn","publishConfig":{"access":"public"},"main":"lib/Klaytn.js","module":"lib-es/Klaytn.js","types":"lib/Klaytn.d.ts","license":"Apache-2.0","dependencies":{"@ethersproject/abi":"^5.5.0","@ethersproject/rlp":"^5.7.0","@helium/address":"^4.6.2","@ledgerhq/cryptoassets":"^6.34.0","@ledgerhq/errors":"^6.10.2","@ledgerhq/hw-transport":"^6.27.4","@ledgerhq/hw-transport-mocker":"^6.27.4","@ledgerhq/logs":"^6.10.0","axios":"^0.26.1","bignumber.js":"^9.1.0","bip32-path":"^0.4.2","caver-js":"^1.9.0"},"scripts":{"clean":"rimraf lib lib-es","build":"rimraf lib lib-es && tsc && tsc -m ES6 --outDir lib-es","build:kaikas":"tsc && tsc -m ES6 --outDir '../kaikas-pixelplex/ui/lib'","build:kaikas-tuto":"tsc && tsc -m ES6 --outDir '../../kaikas-tutorial/src/lib'","build:pure-js":"tsc && tsc -m ES6 --outDir '../../stellar-prep/lib'","prewatch":"pnpm build","watch":"tsc --watch","doc":"documentation readme src/** --section=API --pe ts --re ts --re d.ts","lint":"eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx","lint:fix":"pnpm lint --fix","test":"jest"},"gitHead":"dd0dea64b58e5a9125c8a422dcffd29e5ef6abec","devDependencies":{"@types/jest":"^29.0.2","@typescript-eslint/eslint-plugin":"^5.37.0","@typescript-eslint/parser":"^5.37.0","eslint":"^8.23.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.31.8","jest":"^29.0.3","prettier":"^2.7.1","ts-jest":"^29.0.1","ts-node":"^10.9.1","typescript":"^4.8.3"},"_id":"@blooo/hw-app-klaytn@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-L/jmr+V11w53HU/5Zj/LFs4Ew5fH8Oqk9cuna8/IoyCf8oIy0xNP5AZzZwU04xSMOJUMQIcrUJ1UYrnqd85GWQ==","shasum":"bcabcf55d322cac1ce30b37e045133daad7bb3da","tarball":"https://registry.npmjs.org/@blooo/hw-app-klaytn/-/hw-app-klaytn-0.1.0.tgz","fileCount":18,"unpackedSize":157575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7z7HOYqnK6xNk5wqNbHemwWsQ893P506QBqx1jYw3lAiAK0Y1+vUjhcKXBEMICqczvx8gmKgzfrBUEe9KNat/cQA=="}]},"_npmUser":{"name":"n4l5u0r","email":"rouslan@blooo.io"},"directories":{},"maintainers":[{"name":"n4l5u0r","email":"rouslan@blooo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hw-app-klaytn_0.1.0_1709806048467_0.3271015386477778"},"_hasShrinkwrap":false},"0.2.0":{"name":"@blooo/hw-app-klaytn","version":"0.2.0","description":"Ledger Hardware Wallet Klaytn Application API","keywords":["Ledger","LedgerWallet","Klaytn","KLAY","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/blooo-io/hw-app-klaytn.git"},"bugs":{"url":"https://github.com/blooo-io/hw-app-klaytn/issues"},"homepage":"https://github.com/blooo-io/hw-app-klaytn","publishConfig":{"access":"public"},"main":"lib/Klaytn.js","module":"lib-es/Klaytn.js","types":"lib/Klaytn.d.ts","license":"Apache-2.0","dependencies":{"@ethersproject/abi":"^5.5.0","@ethersproject/rlp":"^5.7.0","@helium/address":"^4.6.2","@ledgerhq/cryptoassets":"^6.34.0","@ledgerhq/errors":"^6.10.2","@ledgerhq/hw-transport":"^6.27.4","@ledgerhq/hw-transport-mocker":"^6.27.4","@ledgerhq/logs":"^6.10.0","axios":"^0.26.1","bignumber.js":"^9.1.0","bip32-path":"^0.4.2","caver-js":"^1.9.0"},"scripts":{"clean":"rimraf lib lib-es","build":"rimraf lib lib-es && tsc && tsc -m ES6 --outDir lib-es","build:kaikas":"tsc && tsc -m ES6 --outDir '../kaikas-pixelplex/ui/lib'","build:kaikas-tuto":"tsc && tsc -m ES6 --outDir '../../kaikas-tutorial/src/lib'","build:pure-js":"tsc && tsc -m ES6 --outDir '../../stellar-prep/lib'","prewatch":"pnpm build","watch":"tsc --watch","doc":"documentation readme src/** --section=API --pe ts --re ts --re d.ts","lint":"eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx","lint:fix":"pnpm lint --fix","test":"jest"},"gitHead":"dd0dea64b58e5a9125c8a422dcffd29e5ef6abec","devDependencies":{"@types/jest":"^29.0.2","@typescript-eslint/eslint-plugin":"^5.37.0","@typescript-eslint/parser":"^5.37.0","eslint":"^8.23.1","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.31.8","jest":"^29.0.3","prettier":"^2.7.1","ts-jest":"^29.0.1","ts-node":"^10.9.1","typescript":"^4.8.3"},"_id":"@blooo/hw-app-klaytn@0.2.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-V+ee679zUEGB2zNqid5cnKRSSG7k76ADtlaJEptncieQp4KU8StX6x0zsKv1cTH9sYZR31gnW8NuiGB4kw/3hw==","shasum":"ddc9997f2c8f6bf7719d306c42df1a8e0ee28042","tarball":"https://registry.npmjs.org/@blooo/hw-app-klaytn/-/hw-app-klaytn-0.2.0.tgz","fileCount":18,"unpackedSize":79553,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2hESwL3kJFT6FaGjJH29y6vVy62CrR6EAveuRk1o4gAiEAt7K7Offd+x3y/+fb+x4jdKpbVLEUxDNHTBihSgyg6Kk="}]},"_npmUser":{"name":"n4l5u0r","email":"rouslan@blooo.io"},"directories":{},"maintainers":[{"name":"n4l5u0r","email":"rouslan@blooo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hw-app-klaytn_0.2.0_1715967880635_0.8498288583478153"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-07T10:07:28.269Z","0.1.0":"2024-03-07T10:07:28.666Z","modified":"2024-05-17T17:44:41.060Z","0.2.0":"2024-05-17T17:44:40.844Z"},"maintainers":[{"name":"n4l5u0r","email":"rouslan@blooo.io"}],"description":"Ledger Hardware Wallet Klaytn Application API","homepage":"https://github.com/blooo-io/hw-app-klaytn","keywords":["Ledger","LedgerWallet","Klaytn","KLAY","NanoS","Blue","Hardware Wallet"],"repository":{"type":"git","url":"git+https://github.com/blooo-io/hw-app-klaytn.git"},"bugs":{"url":"https://github.com/blooo-io/hw-app-klaytn/issues"},"license":"Apache-2.0","readme":"<img src=\"https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png\" height=\"100\" />\n\n[Github](https://github.com/blooo-io/)\n\n## @blooo/hw-app-klaytn\n\nLedger Hardware Wallet Klaytn JavaScript bindings.\n\n## API\n\n#### Table of Contents\n\n- [Klaytn](#klaytn)\n  - [Parameters](#parameters)\n    - [Examples](#examples)\n  - [Basic Information Methods](#basic-information-methods)\n    - [getVersion()](#getversion)\n      - [Examples](#examples-1)\n    - [getAddress()](#getaddress)\n      - [Parameters](#parameters-1)\n      - [Examples](#examples-2)\n  - [Transaction signing methods](#transaction-signing-methods)\n    - [Parameters](#parameters-2)\n    - [Examples](#examples-3)\n\n## Klaytn\n\nKlaytn API\n\n### Parameters\n\n- `transport`. A transport for sending commands to a device\n- `scrambleKey`. A scramble key (optional, default `\"klaytn_default_scramble_key\"`)\n\n#### Examples\n\n```javascript\nimport Klaytn from \"blooo/hw-app-klaytn\";\nconst klaytn = new Klaytn(transport);\n```\n\n### Basic Information methods\n\n#### getVersion()\n\nGet application version.\n\n##### Examples\n\n```javascript\nklaytn.getVersion().then((r) => r.version);\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{version: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** version object\n\n#### getAddress\n\nGet Klaytn address (public key) for a BIP32 path.\n\n##### Parameters\n\n- `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP32 path without the address index\n- `display` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** flag to show display (default)\n- `accountIndex` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** index of account address (optional, default `0`)\n\n##### Examples\n\n```javascript\nklaytn.getAddress(\"44'/8217'/0'/0/\", false, 0).then((r) => r.address);\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{address: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), chainCode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)}>** an object with the address field\n\n### Transaction Signing Method\n\nTo sign a Klaytn transaction use the method: **signTransaction** .\n\n#### Parameters\n\n- `txn`. A **[caver transaction](https://archive-docs.klaytn.foundation/content/dapp/sdk/caver-js/api-references/caver.transaction)**.\n- `accountIndex` index of account address (optional, default `0`)\n\n##### Examples\n\n```javascript\nimport Caver from \"caver-js\";\n\nconst caver = new Caver();\n\nconst accountIndex = 1;\n\nconst txn = caver.transaction.valueTransfer.create({\n  from: \"enter address here\",\n  to: \"enter address here\",\n  value: 1,\n  gasPrice: 50000000000,\n  gas: 300000,\n  nonce: 1,\n  chainId: 1001,\n});\n\nklaytn.signTransaction(txn, accountIndex).then((r) => r.signature);\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{signature: \\[[v](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/string),[r](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/string),[s](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/string)\\], signedTxn: [caver transaction](https://archive-docs.klaytn.foundation/content/dapp/sdk/caver-js/api-references/caver.transaction).}>** an object with the signed transaction and signature\n","readmeFilename":"README.md"}