ETHEREUM Dev Notes: Testing the eth.rb Ruby Gem

The install instructions for the eth Ruby gem is referenced below, but you will more-than-likely need to install other packages to get eth up and running:

Main Packages

  • geth - Ethereum client written in Go.
  • gem install rbsecp256k1 -- --with-system-libraries
  • gem install eth

Dependancies (Do this first to save time)

macos

brew install automake openssl libtool pkg-config gmp libffi

Linux

sudo apt-get install build-essential automake pkg-config libtool \
  libffi-dev libssl-dev libgmp-dev python-dev

Before you can test smart contracts geth must sycn your node with the Ethereum network. This takes time and around 150GB of disk space:

Make sure you run all the tests on the eth gem github page to insure your install is solid.

More testing results to follow .....

References:

eth gem

geth

rbsecp256k1

See also:

Current ETH sync status, 88% done, 160 GB....

INFO [05-29|17:47:57.092] State sync in progress   synced=88.18% state=159.93GiB. accounts=157,857,956@35.37GiB slots=609,561,997@121.56GiB c
Every 2.0s: du -h chaindata                                                                                                                                      MacStudio.local: Mon May 30 09:40:16 2022

 97G    chaindata/ancient
4.0K    chaindata/geth-tutorial/geth
  0B    chaindata/geth-tutorial/keystore
4.0K    chaindata/geth-tutorial
263G    chaindata

Having installed and configured geth and the Ruby eth gem, synced the entire Ethereum blockchain, I'm honestly stuck on finding a real-world, useful, practical Ethereum distributed application to code, further developing skills in this area.

If anyone can provided a practical, simple, useful (and not difficult to code) Ethereum application, please reply with details.

Getting all the details of geth up and running flawlessly has been non-trivial so far; so I'm reluctant to put a lot more quality time into this caper unless I can sink my teeth into a practical, fun application to build.

Update:

After testing Ethereum, my thoughts was that it was "overly complicated".

So, I moved on to testing Solana (to compare).

Continued here:

Update:

geth removedb #yes to all
brew uninstall ethereum
rm -rf /Users/Neo/Library/Ethereum/

Before:

Screen Shot 2022-06-04 at 10.25.39 AM

After:

Screen Shot 2022-06-04 at 10.30.54 AM

Bonus: Reclaimed 300GB of disk space.....