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

ethereum-wallet-interactor

v4.0.1

Published

A Node.js library for interacting with the Ethereum blockchain, enabling wallet balance checks and transactions.

Downloads

17

Readme

Ethereum Wallet Interactor

ethereum-wallet-interactor is a Node.js library designed to simplify interactions with the Ethereum blockchain. It provides easy-to-use functions for checking Ethereum wallet balances and sending transactions, making it an ideal tool for developers looking to integrate Ethereum functionalities into their applications.

Features

  • Check Ethereum Wallet Balance: Quickly retrieve the balance of any Ethereum wallet.
  • Send Ethereum Transactions: Easily create and send transactions on the Ethereum network.
  • Environment Variables for Security: Utilizes .env files to securely manage sensitive information like private keys.
  • Simple Command Line Interaction: Includes a command-line interface for direct interaction.

Installation

To install ethereum-wallet-interactor, run the following command in your project directory:

npm install ethereum-wallet-interactor

This will add ethereum-wallet-interactor as a dependency to your project, and you can start using it right away.

Quick Start

Set up your .env file

Create a .env file in the root of your project and add your Ethereum network URL and private key:

INFURA_URL=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID

PRIVATE_KEY=your_private_key_here

Using the Library

Here's a quick example to get you started:

const { getBalance, sendTransaction } = require('ethereum-wallet-interactor');

// Check wallet balance
getBalance('your_wallet_address').then(balance => console.log(`Wallet Balance: ${balance} ETH`));

// Send transaction
sendTransaction('from_address', 'private_key', 'to_address', 'amount_in_ether')
  .then(receipt => console.log(`Transaction Successful: ${receipt.transactionHash}`))
  .catch(error => console.error(`Transaction Failed: ${error.message}`));

Documentation

For detailed information about how to use ethereum-wallet-interactor, including setup, API references, and examples. Here, you'll find everything you need to start integrating Ethereum wallet functionalities into your application, enhancing your blockchain development journey.

Contributing

We welcome contributions from everyone! If you're interested in improving ethereum-wallet-interactor. Here are some ways you can contribute:

  • Reporting bugs and proposing feature requests by creating issues.
  • Submitting pull requests to help solve issues or add features.
  • Improving documentation to make it more accessible.
  • Providing feedback and suggestions on enhancements.

Before contributing, please read through our guidelines where you'll find instructions on how to submit your pull requests and our code of conduct. We're excited to welcome you to our community!

License

ethereum-wallet-interactor is made available under the MIT License. This means you're free to use, modify, distribute, and in private or commercial projects, as long as you include the original copyright and license notice in any copy of the software/source. For more details, see the LICENSE file.

Acknowledgments

A big thank you to:

  • The Ethereum community for providing the essential tools and frameworks that made this project possible.
  • All the contributors who've helped shape ethereum-wallet-interactor into what it is today.
  • Our users who've provided valuable feedback and support.

This project stands on the shoulders of giants and is a testament to the power of collaboration and open-source spirit.

Updates

New Features in the Latest Version

- Check Current Gas Prices: Obtain the current gas prices on the Ethereum network, useful for estimating transaction costs.
- Get Transaction Details: Retrieve detailed information about a transaction by its hash.
- List Transactions for an Address: View recent transactions related to a specific Ethereum address.
- These new features enhance the functionality of the library by providing more detailed and useful interactions with the Ethereum blockchain.