bitkunst / Block_Explorer

geth를 활용해 private blockchain network 구성 / Block Explorer 제작

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Block Explorer


geth 실행

$ geth --datadir privateNetwork --ws --ws.addr "0.0.0.0" --ws.port 9005 --ws.origins "*" --ws.api "admin,miner,txpool,web3,personal,eth,net" --syncmode full --networkid 7777

Js 콘솔

$ geth attach ws://127.0.0.1:9005

coinbase 계정

4def76b3681465c2887e6db02dd56b7d330a7fb2

another 계정

aef28d9c27d445485329fcbcf0a5111a389029c8


send Transaction

personal.sendTransaction({from: eth.coinbase, to: 'aef28d9c27d445485329fcbcf0a5111a389029c8', value: web3.toWei(1, 'ether')}, '1234')
personal.sendTransaction({from: 'aef28d9c27d445485329fcbcf0a5111a389029c8', to: eth.coinbase, value: web3.toWei(1, 'ether')}, '1234')

wei -> eth

web3.fromWei(eth.getBalance(eth.coinbase), 'ether')

About

geth를 활용해 private blockchain network 구성 / Block Explorer 제작


Languages

Language:JavaScript 88.9%Language:CSS 7.2%Language:HTML 3.7%Language:Shell 0.2%