
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
cooller458-wallet-npm-package
Advanced tools
This library enables interaction with various cryptocurrency wallets, providing functionalities like wallet generation, transaction signing, and more, adapted for use within Node.js applications.
npm install cooller458-wallet-npm-package
Below are examples demonstrating how to use this library to perform various wallet operations:
const { Wallet, utils } = require('cooller458-wallet-npm-package');
// Generate a random EVM-compatible wallet (Ethereum, Polygon, etc.)
const evmWallet = new Wallet('eth');
console.log(evmWallet.generate());
// Generate a random Bitcoin wallet (default format: bech32)
const btcWallet = new Wallet('btc');
console.log(btcWallet.generate());
// Generate a random mnemonic string (12 words) and generate a wallet from it
const mnemonic = utils.generateMnemonic(12);
const walletFromMnemonic = new Wallet('eth');
console.log(walletFromMnemonic.fromMnemonic(mnemonic));
// Generate multiple wallets
const wallets = [];
for (let i = 0; i < 10; i++) {
wallets.push(new Wallet('eth').generate());
}
console.log(wallets);
// Advanced Usage: Generate a wallet with specific requirements
const btcWalletCustom = new Wallet('btc', { prefix: 'abc', format: 'bech32' });
console.log(btcWalletCustom.generate());
// Generate a wallet with a desired prefix (case-sensitive option available)
const walletWithPrefix = new Wallet('btc', { prefix: 'abc' });
console.log(walletWithPrefix.generate());
// Generate wallets from a mnemonic with specific formats and save them to a CSV
const mnemonic = "radio bright pizza pluck family crawl palm flame forget focus stock stadium";
const btcWalletBech32 = new Wallet('btc', { format: 'bech32' });
console.log(btcWalletBech32.fromMnemonic(mnemonic));
// Output to CSV example (Node.js doesn't support command line options like `-D` directly)
const fs = require('fs');
const csvData = wallets.map(w => `${w.address},${w.privateKey}`).join('\n');
fs.writeFileSync('output.csv', csvData);
For a complete list of supported blockchains and more detailed examples of each functionality, please refer to the comprehensive API documentation included with the package.
Contributions to the library are welcome. Please refer to the CONTRIBUTING.md file for guidelines.
This project is licensed under the MIT License. See the LICENSE file for more details.
FAQs
Crypto wallet generator CLI tool
The npm package cooller458-wallet-npm-package receives a total of 7 weekly downloads. As such, cooller458-wallet-npm-package popularity was classified as not popular.
We found that cooller458-wallet-npm-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.