{"_id":"@cosmcaptain/cosmjs-wallet-kit","_rev":"4-fc8fae5d6cfe396124d1c81e74df54b5","name":"@cosmcaptain/cosmjs-wallet-kit","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.1":{"name":"@cosmcaptain/cosmjs-wallet-kit","version":"0.0.1","description":"This is a cosmjs wallet kit","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","homepage":"https://x.com/wiselyLee1","repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"keywords":["cosmos chain","cosmjs","juno","osmo"],"author":{"name":"wisely"},"license":"MIT","devDependencies":{"tsup":"^8.0.2","typescript":"^5.3.3"},"dependencies":{"@cosmjs/stargate":"^0.32.2","cosmjs-types":"^0.9.0"},"_id":"@cosmcaptain/cosmjs-wallet-kit@0.0.1","gitHead":"3f3c0a7e149f66d0413109876a90473b861b95a7","bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-qa4RFZkBenlZigqTSoOBwxblgFE+Dw2THqiQ/HqShchPDnca8N7JTHlA/FaYoV7S0TqCiTXDmQcqS512ZABBvw==","shasum":"2a94d5cc7e494679d91df663e5e3df48edeb7ef7","tarball":"https://registry.npmjs.org/@cosmcaptain/cosmjs-wallet-kit/-/cosmjs-wallet-kit-0.0.1.tgz","fileCount":6,"unpackedSize":15829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDQvoyIo2MVJBGJjjzhAt5qRrgBcrXwF2zYkPpZHYA6AiEAwXwO4CfkOx1iQNlM8ZiGLEodH3ophodH5myt7qpsNYo="}]},"_npmUser":{"name":"cosmcaptain","email":"bitninja@skiff.com"},"directories":{},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cosmjs-wallet-kit_0.0.1_1709393878582_0.30100784652399937"},"_hasShrinkwrap":false},"0.1.0":{"name":"@cosmcaptain/cosmjs-wallet-kit","version":"0.1.0","description":"This is a cosmjs wallet kit","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","homepage":"https://x.com/wiselyLee1","repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"keywords":["cosmos chain","cosmjs","juno","osmo"],"author":{"name":"wisely"},"license":"MIT","devDependencies":{"tsup":"^8.0.2","typescript":"^5.3.3"},"dependencies":{"@cosmjs/stargate":"^0.32.2","cosmjs-types":"^0.9.0"},"_id":"@cosmcaptain/cosmjs-wallet-kit@0.1.0","gitHead":"0f1bd3f1b72685b40f478f7d30218ea76af3d03a","bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-pddudFKK67EHi3rXlgI1WxtD+UGc1GUCmNCd0JCGrOdIy7DhH9XPwGTMecGtNkso1cNtgqog10qfAIYj64Xq8g==","shasum":"6be3da1c12a578c224992db537ef8fd033ed9893","tarball":"https://registry.npmjs.org/@cosmcaptain/cosmjs-wallet-kit/-/cosmjs-wallet-kit-0.1.0.tgz","fileCount":6,"unpackedSize":16649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1QH5s/61VYi8WUGvpxtC6nDjCe6v+DBUxFmeeK4jPjQIhALF4cnXighOg1Nj8g0ExdzWI54AfAw0wLmczrnYFchOU"}]},"_npmUser":{"name":"cosmcaptain","email":"bitninja@skiff.com"},"directories":{},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cosmjs-wallet-kit_0.1.0_1709526456608_0.9295857276461108"},"_hasShrinkwrap":false},"0.2.0":{"name":"@cosmcaptain/cosmjs-wallet-kit","version":"0.2.0","description":"This is a cosmjs wallet kit","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","homepage":"https://x.com/wiselyLee1","repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"keywords":["cosmos chain","cosmjs","juno","osmo"],"author":{"name":"wisely"},"license":"MIT","devDependencies":{"tsup":"^8.0.2","typescript":"^5.3.3"},"dependencies":{"@cosmjs/stargate":"^0.32.2","cosmjs-types":"^0.9.0"},"_id":"@cosmcaptain/cosmjs-wallet-kit@0.2.0","gitHead":"a042b3044b28e464dd223fc42c950d24495246ab","bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-nAzIqJHqg6lrG5ANGIUO+QaRns0w114Ij5gOZMWmi9RtUyL222iEvEM1FQvCWqx+eeedkfosE2ac86oPyYQpEg==","shasum":"28ec062c28486f1f404b6e4d74314f5e6c9e6f8a","tarball":"https://registry.npmjs.org/@cosmcaptain/cosmjs-wallet-kit/-/cosmjs-wallet-kit-0.2.0.tgz","fileCount":6,"unpackedSize":17419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICn2mGuAzJNVPqt/M36VptiUB50dAydwL9/VFVW0dnInAiBXVPuV3uLzSLr6D4BER/4z8+0qQTJl5RlDZgqicCHhgw=="}]},"_npmUser":{"name":"cosmcaptain","email":"bitninja@skiff.com"},"directories":{},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cosmjs-wallet-kit_0.2.0_1709637826322_0.6578760529492353"},"_hasShrinkwrap":false},"0.2.1":{"name":"@cosmcaptain/cosmjs-wallet-kit","version":"0.2.1","description":"This is a cosmjs wallet kit","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","homepage":"https://x.com/wiselyLee1","repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"keywords":["cosmos chain","cosmjs","juno","osmo"],"author":{"name":"wisely"},"license":"MIT","devDependencies":{"tsup":"^8.0.2","typescript":"^5.3.3"},"dependencies":{"@cosmjs/stargate":"^0.32.2","cosmjs-types":"^0.9.0"},"_id":"@cosmcaptain/cosmjs-wallet-kit@0.2.1","gitHead":"68017575073a9106a3d4f42ad4dd9696770a0294","bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-XwfFDKUQM++imE3bUiwcbxv0NX49x5/biZsjb7XEz7Pop9q2qftdq08ZKTXXEb/TozC3EBaO7u2VvNdVxso+vg==","shasum":"96994aabbed7773177e80bcc75941c69062d88a2","tarball":"https://registry.npmjs.org/@cosmcaptain/cosmjs-wallet-kit/-/cosmjs-wallet-kit-0.2.1.tgz","fileCount":6,"unpackedSize":17419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNLKN3vNp/WowtnFSW3GJSzl8csuupcSoCT28JVGQb5gIgcjsS0m75UrHAiPfrr+YHkZkqnAgmqSM8Hb5xApcLaJ8="}]},"_npmUser":{"name":"cosmcaptain","email":"bitninja@skiff.com"},"directories":{},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cosmjs-wallet-kit_0.2.1_1709644705893_0.9600254152162002"},"_hasShrinkwrap":false},"0.2.2":{"name":"@cosmcaptain/cosmjs-wallet-kit","version":"0.2.2","description":"This is a cosmjs wallet kit","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","homepage":"https://x.com/wiselyLee1","repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"keywords":["cosmos chain","cosmjs","juno","osmo"],"author":{"name":"wisely"},"license":"MIT","devDependencies":{"tsup":"^8.0.2","typescript":"^5.3.3"},"dependencies":{"@cosmjs/stargate":"^0.32.2","cosmjs-types":"^0.9.0"},"_id":"@cosmcaptain/cosmjs-wallet-kit@0.2.2","gitHead":"abacf53ae25dbc9eac72da41b4c1b77b941f6f78","bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-MMkKIBEk9iOlWJIDOhXEXDMYa1gAOvw2MIi0deM6JYbZreH2kVVCpfZaR6Bl9i2Ku+6RhJ7TxixSCcTVJkrcHw==","shasum":"d15dac975ec486495ce89f53c14e00835a220689","tarball":"https://registry.npmjs.org/@cosmcaptain/cosmjs-wallet-kit/-/cosmjs-wallet-kit-0.2.2.tgz","fileCount":6,"unpackedSize":17457,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7DYjaKZEl5wu/pT+sTbHya8DfdZAHOTobDQNQT325bQIgTWZYpQ0tjP0FwN1aO11+B0T2oDimD5NKFYm2wB8w838="}]},"_npmUser":{"name":"cosmcaptain","email":"bitninja@skiff.com"},"directories":{},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cosmjs-wallet-kit_0.2.2_1709647779274_0.33661975416249046"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-02T15:37:58.490Z","0.0.1":"2024-03-02T15:37:58.747Z","modified":"2024-03-05T14:09:39.893Z","0.1.0":"2024-03-04T04:27:36.752Z","0.2.0":"2024-03-05T11:23:46.536Z","0.2.1":"2024-03-05T13:18:26.025Z","0.2.2":"2024-03-05T14:09:39.491Z"},"maintainers":[{"name":"cosmcaptain","email":"bitninja@skiff.com"}],"description":"This is a cosmjs wallet kit","homepage":"https://x.com/wiselyLee1","keywords":["cosmos chain","cosmjs","juno","osmo"],"repository":{"type":"git","url":"git+https://github.com/wiselyG/cosmjs-wallet-kit.git"},"author":{"name":"wisely"},"bugs":{"url":"https://github.com/wiselyG/cosmjs-wallet-kit/issues"},"license":"MIT","readme":"# cosmjs-wallet-kit\n\nThis is a toolkit for batch generate cosmos/osmo/juno/axelar &etc wallets from a same mnemonic.\nAlso with function of batch faucet other accounts from main account.\n\n## Functions\n\n- Generate a new mnemonic\n\n```\nconst test1= async ()=>{\n  //you can custom the number of mnemonic words\n  const mnemonic=await generateMnemonic(15);\n  console.log(\"mnemonic: \",mnemonic);\n}\n```\n\n- create a cosmjs wallet kit instance\n\n```\nimport { Cosmwalletkit } from '@cosmcaptain/cosmjs-wallet-kit';\n//chain value can be cosmos/osmo/juno/axelar\n//rpc is the endpoint to the chain\nlet cosmkit = new Cosmwalletkit(mnemonic,chain,rpc)\n```\n\n- generate wallet signer(have 2 version)\n\n```\n//ver1\n//will return 8 wallets start from hdPath index at 0\nconst walletSigner = await cosmkit.getSignerFromMnemonic(8);\n\n//ver2\n//will return wallets which hdPath is 0,1,2\nconst walletSigner = await cosmkit.getSignerByPathIndex([0,1,2])\n```\n\n- get Account Data\n\n```\nconst accounts:AccountData[]=await cosmkit.getAccountData(walletSigner);\nconst address=accounts[0].address;\nconsole.log(\"address:\",address);\n```\n\n[view api document of AccountData](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/AccountData.html)\n\n- query balance of wallet with hdPath\n\n```\nconst balances:WalletBalance[] = await cosmkit.queryBalance([2,3,4]);\nconst address = balances[0].address;\nconst coins:Coin[] = balances[0].coins;\nconst hdPath = balances[0].index;\n```\n\n[view api document of Coin](https://cosmos.github.io/cosmjs/latest/proto-signing/interfaces/Coin.html)\n\n- batch faucet wallets\n\n```\n//mainPath which is the hdPath to send tokens from\n//receiver is a number array which is receive tokens\n//value is the amount for each wallet to send\nconst result = await cosmkit.batchFaucet(mainPath,receiver,value,customGas)\nconsole.log(result.code);\n```\n\n- convert Coin to uCoin(x1000000)\n\n```\nimport { touCoin } from  '@cosmcaptain/cosmjs-wallet-kit';\nconst amount=touCoin(0.1);\nconsole.log(\"amount:\",amount);\n```\n\n**tips:**\n\n# 🌌🚀🚀🚀","readmeFilename":"README.md"}