1. geth client 접속


   private으로 구성된 geth client에 연결


   geth attach http://localhost:8545


2. 화면 표시되는 로그양을 줄여서 표시

   geth --verbosity 0 console


3.  geth admin 


   1) 현재 노드에 대한 정보 확인

      admin.nodeInfo


   2) 현재 노드에 붙어 있는 노드들 확인

      admin.peers


4. block 확인

 

   1) 총 블럭 개수 확인

      eth.blockNumber

   

   2) 특정 블럭 내용 확인

      eth.getBock(623400)


5. 계정 관련 함수 확인

   personal


6. mining  

   thread 2개를 가지고 mining 시작

   miner.start(2)   


   mining 중단

   miner.stop()


7. 트랜잭션 상태 확인

   현재 노드에 특랜잭션 상태

   txpool


8. 특정 명령어 수행

   geth --exec  "eth.accounts" attach http://localhost:8545


9. 특정 스크립트 수행

   geth --jspath "/tmp" --exec 'loadScript("test.js")' attach http://localhost:8545




'blockchain > ethereum' 카테고리의 다른 글

solidity data type  (0) 2018.12.30
solidity solc 설치  (0) 2018.12.30
ethereum 인프라 활용  (0) 2018.12.27
블럭체인 웹호출  (0) 2018.12.14
ens name 등록 및 검색  (0) 2018.12.11

+ Recent posts