Update README.md

This commit is contained in:
BT3GL /baɪtɡɝɫ/ 2022-05-14 13:51:11 -07:00 committed by GitHub
parent 8d4cf3aa62
commit 807e63f328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,10 +11,16 @@ A custom Ethereum testnet contains three components:
* a custom `NetworkID` , which we set `137`
<br>
### Gas
Gas refers to the unit that measures the computational effort required to execute specific operations on the Ethereum network.
<br>
### Nodes
Running nodes are responsible for the following tasks:
@ -23,14 +29,26 @@ Running nodes are responsible for the following tasks:
- participates in block validation (verifying blocks and states),
- serve the network and provides data on request.
<br>
### Storage
More details to be added soon.
<br>
### Faucet
More details to be added soon.
<br>
---
## Interacting with the client
@ -39,17 +57,27 @@ More details to be added soon.
You can run commands directly in the console:
<br>
##### Getting total coinbase
```
> web3.fromWei(eth.getBalance(eth.coinbase), "ether")
```
<br>
##### Getting a balance from an account
```
> web3.fromWei(eth.getBalance("2ee8D80de1c389f1254e94bc44D2d1Bc391eD402"), "ether")
```
<br>
#### 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:
@ -58,6 +86,10 @@ Access to several non-standard RPC methods to inspect the contents of the transa
txpool
```
<br>
#### Other useful checks
```
@ -65,6 +97,8 @@ admin.nodeInfo
```
<br>
### Setting this chain on MetaMask
@ -76,6 +110,9 @@ New RPC URL: localhost
Chain ID: 137
```
<br>
---
## References