npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nadcablabs-bulk-evm-wallet-genrator

v1.0.1

Published

**EVM Address Generator** is a Node.js library that generates Ethereum-compatible (EVM) addresses in bulk, with each address associated with a random value between 0.001 and 0.1. This tool is perfect for developers who need to create large sets of address

Downloads

26

Readme

Bulk Evm Wallet Address Generator

EVM Address Generator is a Node.js library that generates Ethereum-compatible (EVM) addresses in bulk, with each address associated with a random value between 0.001 and 0.1. This tool is perfect for developers who need to create large sets of addresses for testing or other purposes.

Features

  • Bulk Address Generation: Generate up to 100,000 Ethereum-compatible addresses.
  • Random Value Assignment: Each address is paired with a random value between 0.001 and 0.1.
  • CSV & Text File Output: Easily export addresses and values to a CSV or text file.
  • Efficient and Fast: Optimized for performance to handle large-scale generation.

Installation

Before using the EVM Address Generator, ensure you have Node.js installed. Then, you can install the required dependencies:

npm install ethereumjs-wallet csv-writer

Usage

Basic Example

Here's a simple example to generate 100,000 addresses with random values and save them to a text file:

 const Wallet = require('ethereumjs-wallet').default;
const fs = require('fs');

const numAddresses = 100000;
let data = '';

// Generate addresses and random values
for (let i = 0; i < numAddresses; i++) {
    const wallet = Wallet.generate();
    const address = wallet.getAddressString();
    const randomValue = (Math.random() * (0.1 - 0.001) + 0.001).toFixed(4);

    data += `${address} ${randomValue}\n`;
}

// Write the data to a text file
fs.writeFile('evm_addresses_with_values.txt', data, 'utf8', (err) => {
    if (err) {
        console.error('Error writing to text file', err);
    } else {
        console.log('Text file was written successfully');
    }
});

CSV Output Example

If you prefer to export the generated addresses and values to a CSV file, you can use the following script:

const Wallet = require('ethereumjs-wallet').default;
const createCsvWriter = require('csv-writer').createObjectCsvWriter;

const numAddresses = 100000;
const csvWriter = createCsvWriter({
    path: 'evm_addresses_and_private_keys.csv',
    header: [
        { id: 'address', title: 'EVM Address' },
        { id: 'randomValue', title: 'Random Value' }
    ]
});

const records = [];

// Generate addresses and random values
for (let i = 0; i < numAddresses; i++) {
    const wallet = Wallet.generate();
    const address = wallet.getAddressString();
    const randomValue = (Math.random() * (0.1 - 0.001) + 0.001).toFixed(4);

    records.push({ address, randomValue });
}

// Write records to a CSV file
csvWriter.writeRecords(records)
    .then(() => console.log('CSV file written successfully'))
    .catch(err => console.error('Error writing CSV file', err));

Customization

Number of Addresses: You can adjust the number of addresses by modifying the numAddresses variable.
Random Value Range: The range of random values (0.001 to 0.1) can be customized by changing the parameters in the Math.random() function.

Security Considerations

Private Key Handling: This tool does not expose or save private keys when exporting data, ensuring the privacy and security of your generated addresses.
Performance: The script is optimized for generating large datasets quickly, but depending on your system's resources, generating 100,000 addresses may take some time.

Known Issues

Vulnerabilities: If you encounter vulnerabilities in the packages used, consider running npm audit fix or npm audit fix --force. See the npm documentation for more details.

Contributing

Contributions are welcome! If you have ideas to improve this library, feel free to submit a pull request or open an issue. Running Tests

To run tests for the library, use the following command:

node generate_addresses.js

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

@nadcablabs