go ethereum (geth) is a blockchain node infrastructure
https://geth.ethereum.org/docs/install-and-build/installing-geth
nano ~/.profile //add line export PATH="/path/to/geth:$PATH"
save file and then execute . ~/.profile
... OR ...
LINUX/UBUNTU USERS:
You can also install geth directly:
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install geth
geth
-if run alone attems at first a fast sync, if abruptly interrupt, restarts as full sync (can take a week) and exist the light sync for tests
//Path appears in the logs of the first sync, with the "chinID" (reserved: 1 for mainnet, 2 and 3 for test network) geth attach ipc:/path/to/geth.ipc
~/.ethereum dir has the blocks in "chaindata" dir and the private keys in "keystore" dir
geth --datadir=./chaindata init ./genesis.json
geth --datadir=./chaindata --nodiscover
or start irt mining from first account, it will ask next for the password offirst account (0)
geth --datadir=./chaindata --nodiscover --unlock 0 --mine 1
//Path appears in the logs of the first sync, with the "chinID" (reserved: 1 for mainnet, 2 and 3 for test network)
geth attach ipc:/path/to/geth.ipc
eth.accounts
create accounts (creates a private keuy inside ~/.ethereum/keystore or ./chaindata/keystore public an private respectively)
personal.newAccount()
eth.coinbase
miner.setEtherbase(eth.accounts[0])
miner.start(1)
web3.eth.getBalance(eth.accounts[0])
web3.fromWei(web3.eth.getBalance(eth.accounts[0]), "ether")