/Eth-private-network

build Ethereum private network with Docker, Geth (POA)

Primary LanguageDockerfile

nodekey 생성 (bootnode)

$ bootnode --genkey boot.key

POA 방식으로(Clique) genesis.json 파일 생성

  • puppeth 이용
  • Clique 선택

Geth console 명령어

  • eth.accounts : 전체 계정
  • eth.coinbase : 코인베이스 계정
  • eth.mining : 마이닝 중인지 확인 (true/false)
  • eth.blockNumber : 블록 개수
  • eth.getBalance('account') : 계정 잔액 조회

  • personal.newAccount('[패스워드]')
personal.sendTransaction({from: eth.coinbase, to: '0x8f15be3ecc1f6eeafb557fe5c03dc0c68f6b4cfe', value: web3.toWei(2, 'ether')}, '1234')

  • txpool : txpool 조회