본문 바로가기
블록체인

puppeth 명령어를 통한 genesis.json 생성하기

by 혀닙 2022. 7. 1.

 

 

 

 

 

 

 

// genesis.json

{
  "config": {
    "chainId": 7722,
    "homesteadBlock": 0,
    "eip150Block": 0,
    "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 0,
    "constantinopleBlock": 0,
    "petersburgBlock": 0,
    "istanbulBlock": 0,
    "ethash": {}
  },
  "nonce": "0x0",
  "timestamp": "0x62bd7dc2",
  "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "gasLimit": "0x47b760",
  "difficulty": "0x80000",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "coinbase": "0x0000000000000000000000000000000000000000",
  "alloc": {
    "7188630a24591fdb0218d94b53a80091fa5507b8": {
      "balance": "0x200000000000000000000000000000000000000000000000000000000000000"
    },
    "aaa3e898bd61216387edb4f878ae0e1f712cbef2": {
      "balance": "0x200000000000000000000000000000000000000000000000000000000000000"
    },
    "be7388f4d2f72ad4abf49355c920152365ca0594": {
      "balance": "0x200000000000000000000000000000000000000000000000000000000000000"
    }
  },
  "number": "0x0",
  "gasUsed": "0x0",
  "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "baseFeePerGas": null
}

 

go-ethereum 디렉토리로 가서 make all
go-ethereum/build/bin
`puppeth` - 설정 파일 도와줌
`bootnode` - 네트워크의 서버 노드 개념

 

 

 

 

 

node dir 안에 keystore 디렉토리만 존재(geth 디렉토리가 없음)

 

 

init을 해보자

 

 

 

제네시스 상태가 성공적으로 작성되었고

노드 디렉토리 안에 geth라는 디렉토리가 생겼다

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

geth command line option  (0) 2022.07.01
web3로 블럭, tx, txReceipt 가져오기  (0) 2022.07.01
이더리움3. web3 라이브러리  (0) 2022.06.28
이더리움 생태계  (0) 2022.06.27
transaction 생성  (0) 2022.06.22

댓글