LoginSignup
42
43

More than 5 years have passed since last update.

Ethereum Geth コンソールコマンド一覧

Last updated at Posted at 2016-01-26

Gethのコンソールで用いる主要なコマンド一覧です。開発の際にご参照ください。

Account

  • Accountリスト表示
eth.accounts
  • Account作成
personal.newAccount(password)
  • Accountのロック解除
personal.unlockAccount(address, password)
  • 残高確認(単位:wei)
eth.getBalance(account)
  • 残高確認(単位:ether)
web3.fromWei(eth.getBalance(account),"ether")

Coinbase

  • coinbase表示
eth.coinbase
  • coinbase設定
miner.setEtherbase(account)

Mining

  • Mining開始
miner.start()
  • Mining停止
miner.stop()
  • Mining状況確認
eth.blockNumber
  • Miningハッシュレート確認
miner.hashrate

Block

  • Block確認
eth.getBlock(BlockNumber)

トランザクション

  • 送金
eth.sendTransaction({from: from_account, to: to_account, value: web3.toWei(amount_of_ether, "ether")})
  • トランザクション情報表示
eth.getTransaction(transaction_address)

参考記事

Ethereum入門

42
43
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
42
43