コマンドまとめ ETH, RSK, Truffle
gethコマンド
Ethereum Geth コンソールコマンド一覧 - Qiita
実験用まとめ
/Users/name/go-ethereum/build/bin/geth --datadir /Users/name/blockchain_projects/gethdir/miner01 -verbosity 4 --ipcdisable --port 30301 --rpcport 4444 --rpc --targetgaslimit 5000000 --gasprice "1000" console 2>> /Users/name/blockchain_projects/gethdir/testcontractgasset.log
共通:
personal.newAccount("test")
eth.getBalance(eth.accounts[0])
web3.eth.getBalance(web3.eth.accounts[0])
web3.personal.unlockAccount(web3.personal.listAccounts[0],"test", 1500000)
web3.eth.sendTransaction({from:web3.eth.accounts[1], to:web3.eth.accounts[0], value: 100})
TX:
Smart Contracts:
truffle(development)> SimpleStorage.deployed().then(function(instance){return instance.set(4);});