티스토리 뷰

블록체인

Geth) Genesis Block, 계정생성

LHOIKTN 2021. 12. 26. 01:46

 

geth설치 

https://geth.ethereum.org/downloads/

 

윈도우 터미널에서 실습할 폴더를 만들어주고 이동한다.

mkdir geth_practice
cd geth_practice

 

puppeth를 이용해 genesisblock을 생성

puppeth

네트워크 이름을 정해라. (공백, 하이픈, 대문자ㄴㄴ)  

Please specify a network name to administer (no spaces, hyphens or capital letters please)
> hellogenesis

 

뭐할꺼냐? 2 

What would you like to do? (default = stats)
 1. Show network stats
 2. Configure new genesis
 3. Track new remote server
 4. Deploy network components
> 2

 

뭐할꺼냐?  1 

What would you like to do? (default = create)
 1. Create new genesis from scratch
 2. Import already existing genesis
> 1

 

어떤 합의알고리즘 ? 1  pow

Which consensus engine to use? (default = clique)
 1. Ethash - proof-of-work
 2. Clique - proof-of-authority
> 1

 

어떤 계정에 eth 미리  넣어 놓을래? ( 그냥 엔터)

Which accounts should be pre-funded? (advisable at least one)
> 0x

????   ( 그냥 엔터) 

Should the precompile-addresses (0x1 .. 0xff) be pre-funded with 1 wei? (advisable yes)
>

네트워크 아이디를 지정해라  (1,2,3,4,5,42 말고 다른 숫자) 

Specify your chain/network ID if you want an explicit one (default = random)
>7428

 

뭐할꺼냐? 2

What would you like to do? (default = stats)
 1. Show network stats
 2. Manage existing genesis
 3. Track new remote server
 4. Deploy network components
> 2

 

 1. Modify existing configurations
 2. Export genesis configurations
 3. Remove genesis configuration
> 2

어디에 만들꺼냐? (그냥 엔터)

Which folder to save the genesis specs into? (default = current)
  Will create hellogenesis.json, hellogenesis-aleth.json, hellogenesis-harmony.json, hellogenesis-parity.json
>
INFO [12-26|01:25:35.754] Saved native genesis chain spec          path=hellogenesis.json
INFO [12-26|01:25:35.758] Saved genesis chain spec                 client=aleth path=hellogenesis-aleth.json
INFO [12-26|01:25:35.766] Saved genesis chain spec                 client=parity path=hellogenesis-parity.json
INFO [12-26|01:25:35.773] Saved genesis chain spec                 client=harmony path=hellogenesis-harmony.json

이러면 앞에서 만든 폴더에 생성되어 있음

 

 

Genesis

geth --datadir . init hellogenesis.json

 

 

geth 폴더, keystore 폴더 생성

 

계정생성

geth --datadir . account new

0번째 계정에 블록 채굴 보상이 들어감

 

 

계정확인

geth --datadir . account list

728x90

'블록체인' 카테고리의 다른 글

Geth) Geth 콘솔  (0) 2021.12.27
Geth) 노드 첫 실행, DAG 파일 생성  (0) 2021.12.27
하이퍼레져 튜토리얼 - Using the Fabric test network 001  (0) 2021.12.19
NFT.. 탐구 1  (0) 2021.12.13
메타마스크  (0) 2021.10.12
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함