이더리움 계정 생성

쩡쎈·2021년 9월 2일
0

블록체인

목록 보기
5/5

2. 이더리움 계정 생성 (eth0, eth1)

2-1 계정 생성

계정 생성

personal.newAccount(PASSWORD)

계정 확인

eth.accounts

keystore 파일 확인

2-2 코인베이스(Coinbase) 설정

 eth.coinbase

코인베이스 계정 주소 변경

miner.setEtherbase("계정주소")

2-3 마이닝(Mining) 시작

마이닝(Mining) 시작

  • 트랜잭션 생성을 위한 이더 채굴

     miner.start(1)

마이닝(Mining) 진행 상태 확인

eth.mining

마이닝(Mining) 종료

miner.stop()

2-4 마이닝(Mining) 결과 확인

계정별 잔액 확인

eth.getBalance(eth.accounts[0])

생성된 블록 수 조회

eth.blockNumber

블록 상세정보 조회

eth.getBlock(eth.blockNumber)

profile
모르지만 알아가고 있어요!

0개의 댓글