Skip to content

Instantly share code, notes, and snippets.

@Krucamper
Last active November 23, 2018 11:35
Show Gist options
  • Save Krucamper/ca9be0e98c57fdc6621d43dd83a2db07 to your computer and use it in GitHub Desktop.
Save Krucamper/ca9be0e98c57fdc6621d43dd83a2db07 to your computer and use it in GitHub Desktop.
basic command geth
/** คำสั่งตรวจสอบ peer **/
admin.peers
/** คำสั่งตรวจสอบจำนวน block **/
eth.blockNumber
/** คำสั่งเริ่มทำการ miner **/
miner.start(1)
/** คำสั่งแสดงกระเป๋าทั้งหมดใน node นั้นๆ **/
eth.accounts
/** คำสั่งสำหรับเช็คตังค์ในกระเป๋าแบบระบุตำแหน่ง array **/
web3.fromWei(eth.getBalance(eth.accounts[0]), "ether")
/** คำสั่งสำหรับเช็คตังค์ในกระเป๋าแบบระบุ address **/
web3.fromWei(eth.getBalance("0x6b8d87e6b66dde76d95588f83be1d39c4cedd80c"), "ether")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment