Commit Ethereum Transaction Using Command Line

In Ethereum ecosystem, one of the biggest challenge is to design a safe way to commit transaction on the bockchain. Geth, the official software of Ethereum provides good amount of security. But before you start relaying transactions on it, the software has to be downloaded, installed and chain has to be synced. Chain syncing can run for hours depending upon which mode are you running in.

There are browser and browser add-ons based alternatives too, where you have to expose your private key which makes it unsafe to do transactions.

Here, I am going to share a small utility to commit transactions on Ethereum blockchain without any download or web browser. It's a command line utility. All you need is Node.js to run this utility and it connects to Infrua to relay transactions on blockchian.

Steps to post transactions on Ethereum blockchain via command line

  1. Make a git clone of this project

    git clone https://github.com/bit-warrior/ethcmd

  2. Go to directory ethcmd and issue following command to install dependencies.

    npm install

  3. Start the utility node index.js. it will fire up the interactive JS shell. You can choose the Ethereum network you want, I am selecting Ropsten for demonstration.

Screen-Shot-2019-07-05-at-11.55.35-AM

You may request test Ether from Ropsten Ethereum Faucet.

  1. On next screen, provide the private key of the wallet

Screen-Shot-2019-07-05-at-11.55.53-AM

  1. Next screen , enter the Ethereum address you want to send ether.

Screen-Shot-2019-07-05-at-11.56.03-AM

  1. Enter the amount you want to send. it will give you the transaction id which you can search on etherscan to see the status of transaction.

Screen-Shot-2019-07-05-at-11.56.12-AM

Transaction

Please find the source code of utility on Github

I hope you will have fun toying around. If you find this article helpful, please share. Also, you may reach me at contact@etherworld.co with your comments, questions or suggestions of new topics that you would want to be covered at EtherWorld.co.

Read more articles from EtherWorld's collection of Good Read on Blockchain & Cryptocurrency.

____________________________________________________________________________________________________

Follow us at Twitter, Facebook.

For weekly round up on Ethereum and other blockchain news, technology and projects, subscribe EtherWorld's Blockchain Weekly .

____________________________________________________________________________________________________

Subscribe to EtherWorld.co