An open API service indexing awesome lists of open source software.

https://github.com/supanut1911/eth-network

wrap up from Ethereum and Solidity: The Complete Developer's Guide \
https://github.com/supanut1911/eth-network

eth ethnetwork evm faucet metamask

Last synced: 6 months ago
JSON representation

wrap up from Ethereum and Solidity: The Complete Developer's Guide \

Awesome Lists containing this project

README

          

# ETH network

![ETH_network ](images/eth_network.png)

- Objective: ถูกสร้างมาเพื่อใช้ในการ transfer money และ store data

- มีทั้ง mainnet และ testnet

- Network ประกอบไปด้วย 1 หรือ more nodes

- แต่ละ node ก็คือเครื่องคอมที่ run etherium client

- ใครก็สามารถ run node ได้

- แต่ละ node ประกอบด้วย full copy of the blockchain

- Blockchain ก็คือ database ที่ store record ของทุกๆ Tx

# Interface with ETH Network

![Interface_ETH_network ](images/interface_eth_network.png)

Interface roles

- Dev => use web3js to communicate with ETH_Network

- Customer => use Metamas to communitacte with ETH_Network

# ETH Account

Using metamask Extension

![Metamask ](https://www.ananda.co.th/blog/thegenc/wp-content/uploads/2022/03/Metamask-cover.png)

Metask mask ประกอบไปด้วย

- Account Address ex: 0xcf7...c20

- Public key ex: 0x3837...dc8c

- Private key ex: 0x1b...1a3

- metamask มีได้หลาย account (ใน 1 กระเป๋า มีช่องหลายๆช่อง)

- แต่ละ account ต่อได้หลาย network

- mainnet

- Ropsten testnet

- Kovan testnet

- Rinkeby testnet

- localhost:8485

\*account เดิม แต่คนละ network จะเป็นเลข account address เดิมนะ

![Metamask_network ](images/metamask_network.png)

# Receiving ETH with Faucet

![rinkeby_faucet ](images/rinkeby_faucet.png)

## How is Faucet work?

![faucetStep ](images/faucetStep.png)

## Tx obj คือ ?

![Txobj ](images/Txobj.png)

## Why we wait?

เหตุผลที่เราต้องรอเพราะ ตอนส่ง Tx เข้าไปใน network

![txToNetwork ](images/txToNetwork.png)

Tx จะถูกส่งเข้าที่ node ๆ นึง อย่าลืมว่า node ไม่ได้รับแค่ Tx เดียว

![txToNode ](images/txTonode.png)

Node จะทำการสร้าง Block โดยรวม lists of Tx

![createBlock ](images/createBlock.png)

เมื่อเติม Tx ลง block แล้ว จะทำการ validation block ด้วย validation_logic หรือที่เรียกกันว่า "Mining" นั่นเอง

\*ซึ่งการ validation_logic(minig) บน ETH_network จะใช้เวลา 30s

#Basic Blockchains & Block time

#Mingin & Block time