https://github.com/dappcoderr/ether-cli-wallet
CLI wallet built with ethers.js to check balances and send ETH.
https://github.com/dappcoderr/ether-cli-wallet
alchemyapi ethersjs evm nodejs
Last synced: 1 day ago
JSON representation
CLI wallet built with ethers.js to check balances and send ETH.
- Host: GitHub
- URL: https://github.com/dappcoderr/ether-cli-wallet
- Owner: DappCoderr
- Created: 2025-05-28T11:25:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-05-28T14:55:05.000Z (12 months ago)
- Last Synced: 2025-10-11T07:03:08.532Z (7 months ago)
- Topics: alchemyapi, ethersjs, evm, nodejs
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ether-cli-wallet
A Ethereum command-line wallet built with **ethers.js**. This wallet lets you check balances and send ETH using a terminal interface.
## Features
- Check the ETH balance of any address
- Send ETH from your wallet to another address
- Uses environment variables for secure key and RPC management
## Installation
1. **Clone the repo**
```bash
git clone https://github.com/DappCoderr/ether-cli-wallet.git
cd ether-cli-wallet
```
2. **Install dependencies**
```bash
npm i
```
3. **Set up environment variables**
Create a `.env` file in the root of the project:
```env
RPC_PROVIDER=your_rpc_url_here
PRIVATE_KEY=your_private_key_here
```
> Use a service like [Alchemy](https://www.alchemy.com/) or [Infura](https://infura.io/) to get an RPC URL.
## Usage
Run the wallet from the terminal:
```bash
node src/index.js
```
Follow the prompts:
```
Welcome to the ether-cli-wallet
Your address is: 0x...
What do you want to do?
1. Check balance
2. Send ETH
>
```
### Check Balance
- Enter any Ethereum address to see its balance in ETH.
### Send ETH
- Provide the recipient address and the amount of ETH to send the transaction.
- You’ll get the transaction hash once it's confirmed.
## Built With
- [ethers.js](https://docs.ethers.org/)
- [dotenv](https://www.npmjs.com/package/dotenv)
- [readline-sync](https://www.npmjs.com/package/readline-sync)
Feel free to fork, contribute, or use it however you'd like.