一:安裝geth
brew install ethereum
geth github網址: https://github.com/ethereum/go-ethereum
二: 用geth連接以太坊
以太坊有主網絡(Ethereum Mainnet),有測試網絡(Sepolia、Goerli 等等)
官方文檔:https://ethereum.org/zh/developers/docs/networks/
想要連接以太坊網絡,可以通過該網站查詢到各個區塊鏈的節點 https://chainlist.org/
也可以通過sepolia官網,查看該區塊鏈信息。 https://sepolia.dev/
通過geth連接到sepolia:
geth attach https://rpc.sepolia.org/
查看某個地址的余額:
eth.getBalance('0xb43ae8c139caae156805be03aaf8dbe315e4823c')
也可以通過該網站查看鏈上信息: https://sepolia.etherscan.io/
三:進行mine操作
可以使用這個網站,在測試鏈上進行mine操作 https://sepolia-faucet.pk910.de/