Sign inSign up

igtm/ethereum

By igtm

Updated about 9 years ago

ethereum playground

Image
0

6.0K

igtm/ethereum repository overview

以下サンプルコマンド

Docker立ち上げ

docker run -d --name ethereum igtm/ethereum /sbin/init docker exec -it ethereum /bin/bash

サンプルコマンド
geth --networkid 123 --datadir eth_data --olympic console     (gethの起動)
eth.accounts                                        (全アカウント表示)
personal.newAccount("hogehoge")    (アカウント作成)
eth.getBalance(eth.accounts[0])         (残高確認)
eth.blockNumber                                (ブロック数確認)
miner.start()                                         (マイニング )
miner.stop()                                          (マイニング停止 )
eth.getBalance(eth.accounts[0])   (ちょっと増えてるのがわかる)

eth.sendTransaction({from: '送金元アドレス', to: '送金先アドレス', value: web3.toWei(1, "ether")}) 
(トランザクション。1 etherを送る。単位は wei なので変換してから送ってる。この時点ではまだ未確定)

eth.pendingTransactions                    (未確定トランザクションを表示)
miner.start()                                         (マイニング => トランザクションが確定する )
miner.stop()                                          (マイニング停止 )
eth.pendingTransactions                    (未確定トランザクションを表示: null が表示されていれば確定した。)
info

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

about 9 years ago

docker pull igtm/ethereum