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
Make a git clone of this project
git clone https://github.com/bit-warrior/ethcmd
Go to directory ethcmd and issue following command to install dependencies.
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.
You may request test Ether from Ropsten Ethereum Faucet.
- On next screen, provide the private key of the wallet
- Next screen , enter the Ethereum address you want to send ether.
- 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.
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 email@example.com 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 .____________________________________________________________________________________________________