블럭체인 이더리움 이해하는데 도움되는 자료 링크
https://www.slideshare.net/jaehyun/1-block-chain-as-a-platform?next_slideshow=1
블럭체인 이더리움 이해하는데 도움되는 자료 링크
https://www.slideshare.net/jaehyun/1-block-chain-as-a-platform?next_slideshow=1
geth \ --rpc \ --rpcport 8545 \ --rpcaddr 127.0.0.1 \ --rpccorsdomain 127.0.0.1 \ --rpcapi "eth,web3,miner,net,admin,personal,debug" \ --metrics \ --bootnodes <your-bootnodes>
geth monitor --attach=http://127.0.0.1:8545 txpool
geth attach http://127.0.0.1:8545 --exec "debug.metrics(false).txpool"
geth attach http://127.0.0.1:8545 --exec "debug.metrics(false)"
이거 눌러봐요 악용될 수 없다는 공지 떴네요 (0) | 2020.05.22 |
---|---|
die 2.0.5 detect it easy (0) | 2020.05.08 |
Excute BlockChain - Hello World (0) | 2019.01.24 |
[보안] SSH tunneling port forwarding (터널링) (0) | 2018.03.07 |
[Captcha] 캡챠 우회 하기 (0) | 2017.08.03 |
[ Step 0 : Install : MAC ] - 리눅스일경우 다른 방법으로 설치하거나 빌드하면됨
$ brew tap ethereum/ethereum
$ brew install ethereum
[ Step 1 : Create Genesis Block ]
$ mkdir -p ethereum-tutorial && cd ethereum-tutorial
$ mkdir -p private && cd private
$ puppeth
> anyname
> 2. Configure new genesis
> 1. Create new genesis from scratch
> 1. Ethash - proof of work
> 0x100000000000
> (blank:Default pre-funded with 1wei )
> 12345 ( networkID)
<< loop answer >>
> 2. Manage existing genesis
> 2. Export genesis configuration
> ( Ctrl + C : breake process )
there are 4 files;
anyname.json,
anyname-parity.json
anyname-harmony.json
anyname-aleth.json
[Step 2 : Initialize the genesis block]
$ geth --data ~/.ethereum-tutorial/private init anyname.json
[Step 3: Creating accounts]
$ geth --datadir . account new
$ geth --datadir . account list
[Step 4: Write a Shell Script to Start Blockchain]
$ vi startnode.sh
geth --networkid 4224 --mine --minerthreads 1 --datadir "~/Desktop/Playground/ethereum-tutorial/private" --nodiscover --rpc --rpcport "8545" --port "30303" --rpccorsdomain "*" --nat "any" --rpcapi eth,web3,personal,net --unlock 0 --password ~/ethereum-tutorial/private/password.sec --ipcpath "~/Library/Ethereum/geth.ipc"
<< Create another file named password.sec in private folder. >>
$ chmod +x startnode.sh
$ ./startnode.sh
[Step 5: Connect to running geth]
$ geth attach --datadir ~/ethereum-tutorial
[Step 6: Query the blockchain]
> eth.accounts
> eth.getBalance(eth.accounts[0])
> web3.fromWei(eth.getBalance(eth.accounts[0]), "ether")
$ miner.stop()
$ miner.start()
[Step 7: Make transactions]
> eth.sendTransaction({from: eth.coinbase, to: eth.accounts[1], value: web3.toWei(10, "ether")})
> web3.fromWei(eth.getBalance(eth.accounts[1]), "ether")
die 2.0.5 detect it easy (0) | 2020.05.08 |
---|---|
Monitoring BlockChain (0) | 2019.01.24 |
[보안] SSH tunneling port forwarding (터널링) (0) | 2018.03.07 |
[Captcha] 캡챠 우회 하기 (0) | 2017.08.03 |
[보안][기술][BurpSuite] 버프슛 사용하는 방법에 대한 세미나 (0) | 2017.06.23 |