Last active
August 19, 2022 19:36
-
-
Save alexishida/27e8c8e514499c37331e14a1a72f6547 to your computer and use it in GitHub Desktop.
Private Ethereum Network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install ethereum | |
| https://geth.ethereum.org/docs/install-and-build/installing-geth#download-standalone-bundle | |
| https://medium.facilelogin.com/build-your-own-blockchain-b8eaeea2f891 | |
| https://arctouch.com/blog/how-to-set-up-ethereum-blockchain/ | |
| chainid: 23852 | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install software-properties-common | |
| Develop Ethereum Private Blockchain in less than 30 minutes. | |
| You | |
| 1. Install Go-Ethereum (geth) client. | |
| 2. Create two EOA Accounts. | |
| 3. Create Genesis File | |
| 4. Seed private blockchain network with genesis block | |
| 5. Mine new blocks | |
| 6. Check balance to your account | |
| 8545 TCP, used by the HTTP based JSON RPC API | |
| 8546 TCP, used by the WebSocket based JSON RPC API | |
| 8547 TCP, used by the GraphQL API | |
| 30303 TCP and UDP, used by the P2P protocol running the network | |
| # Commands | |
| # Create a mining account | |
| # Mac: ~/Library/Ethereum | |
| # Linux: ~/.ethereum | |
| # Windows: %APPDATA%\Ethereum | |
| # Create account | |
| Which accounts are allowed to seal? (mandatory at least one) | |
| Which accounts should be pre-funded? (advisable at least one) | |
| geth account new --datadir /root/.ethereum | |
| # Create a genesis block | |
| geth -datadir /root/.ethereum init /root/.ethereum/genesis.json | |
| geth --nodiscover --networkid 23852 --datadir /root/.ethereum/ --unlock <address> --mine --rpc --rpcapi eth,net,web3 --rpcaddr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment