From 5788f65239b97acb8156244b07a2bade5d0985b2 Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Fri, 23 Sep 2022 05:28:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=AD=20clean=20up=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geth_and_k8s/README.md | 86 +++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 55 deletions(-) diff --git a/geth_and_k8s/README.md b/geth_and_k8s/README.md index 6afec68..6cc9bf2 100644 --- a/geth_and_k8s/README.md +++ b/geth_and_k8s/README.md @@ -1,66 +1,42 @@ -# Creating your own private Ethereum blockchain +# [experiment] deplpy a private ethereum blockchain on kubernetes -Deploy it with your own [geth](https://geth.ethereum.org/), the official client software provided by the Ethereum Foundation written in the Golang, and a customized genesis file and all. +
-By default, geth implements [Clique](https://eips.ethereum.org/EIPS/eip-225#:~:text=Clique%20is%20a%20proof%2Dof,any%20client%20with%20minimal%20effort.), a proof-of-authority mechanism to reach consensus. Moreover, a number of accounts a defined to produce new blocks in the chain. +### tl;dr -A custom Ethereum testnet contains three components: +
-* a custom [genesis file](/genesis.json -* a custom data directory, which we define with `GETH_DATADIR` -* a custom `NetworkID` , which we set `137` +* deploy it with your own [geth](https://geth.ethereum.org/) and a customized genesis file and all. + +* geth implements [Clique](https://eips.ethereum.org/EIPS/eip-225#:~:text=Clique%20is%20a%20proof%2Dof,any%20client%20with%20minimal%20effort.), a proof-of-authority mechanism to reach consensus. Moreover, a number of accounts a defined to produce new blocks in the chain. + +* a custom Ethereum testnet contains three components: + * a custom [genesis file](/genesis.json + * a custom data directory, which we define with `GETH_DATADIR` + * a custom `NetworkID` , which we set `137`
-### Gas +### nodes -Gas refers to the unit that measures the computational effort required to execute specific operations on the Ethereum network. +
+ +* running nodes are responsible for the following tasks: + - store blockchain data, + - participates in block validation (verifying blocks and states), + - serve the network and provides data on request.
-### Nodes - -Running nodes are responsible for the following tasks: - -- store blockchain data, -- participates in block validation (verifying blocks and states), -- serve the network and provides data on request. - +### interacting with the client
-### Storage - -More details to be added soon. - - -
- - -### Faucet - -More details to be added soon. - - -
- - ---- - -## Interacting with the client - - -You can run commands directly in the console: - - -
- - -##### Getting total coinbase +##### getting total coinbase ``` > web3.fromWei(eth.getBalance(eth.coinbase), "ether") @@ -69,18 +45,18 @@ You can run commands directly in the console:
-##### Getting a balance from an account +##### getting a balance from an account ``` -> web3.fromWei(eth.getBalance("2ee8D80de1c389f1254e94bc44D2d1Bc391eD402"), "ether") +web3.fromWei(eth.getBalance("2ee8D80de1c389f1254e94bc44D2d1Bc391eD402"), "ether") ```
-#### txpool API +#### txpool api -Access to several non-standard RPC methods to inspect the contents of the transaction pool containing all the currently pending transactions as well as the ones queued for future processing: +* access to several non-standard RPC methods to inspect the contents of the transaction pool containing all the currently pending transactions as well as the ones queued for future processing: ``` txpool @@ -90,7 +66,7 @@ txpool
-#### Other useful checks +#### useful checks ``` admin.nodeInfo @@ -100,9 +76,11 @@ admin.nodeInfo
-### Setting this chain on MetaMask +### setting this chain on metamask -Click a `Custom RPC` network and add: + + +* click a `Custom RPC` network and add: ``` Network Name: "" @@ -113,9 +91,7 @@ Chain ID: 137
---- - -## References +### references * [geth commands](https://geth.ethereum.org/docs/interface/command-line-options)