CentOS stream 9 : gethコンソールをinstall

1.環境
・CentOS stream 9
ethereum.orgには、CentOS でのinstall方法の記載はない
https://geth.ethereum.org/docs/install-and-build/installing-geth#download-standalone-bundle

2.参照場所
CentOSでのgethコンソールのinstallは以下を参照
https://snapcraft.io/install/geth/centos

3.install geth

# dnf install epel-release
# dnf install snapd
# systemctl enable --now snapd.socket
# ln -s /var/lib/snapd/snap /snap
# snap install geth 

4. How much ETH is in a given account on the ganache?

# geth attach http://localhost:8545
Welcome to the Geth JavaScript console!

instance: Ganache/v7.1.0/EthereumJS TestRPC/v7.1.0/ethereum-js
coinbase: 0x0000000000000000000000000000000000000000
at block: 0 (Sun, 01 May 2022 13:30:47 JST)
 modules: eth:1.0 evm:1.0 net:1.0 personal:1.0 rpc:1.0 web3:1.0

> web3.fromWei(eth.getBalance(eth.accounts[0]));
1000
> web3.fromWei(eth.getBalance('0xcB97477cCDBf14b16E67ddC58E1Dcf83Fd1D19fF'));
1000
> web3.fromWei(eth.getBalance(eth.accounts[0], 'latest'));
1000
> web3.fromWei(eth.getBalance(eth.accounts[0], 'pending'));
1000
>
> ^C
#

以上