- setup virtualenv
- Install dependencies (note: they are hard-coded; ask me why)
Initialize a chain
This will also initialize the chain
./scripts/setup_chain.sh
Run the chain
./chains/horton/run_chain.sh
Run a one-off command
geth attach <IPC_FULL_PATH> --exec <COMMAND>
List Accounts
web3.eth.accounts
New Account
web3.personal.newAccount()
Get Account balance
web3.eth.getBalance(web3.eth.accounts[0])
Transfer money
eth.sendTransaction({from: OWNER, to: SECOND, value: web3.toWei(100, "ether")})
# Owner account to a new account
eth.sendTransaction({from: web3.eth.accounts[0], to: web3.eth.accounts[1], value: web3.toWei(100, "ether")})
Unlock account
personal.unlockAccount(address, "password", 0)
personal.unlockAccount(eth.accounts[1],passphrase="demopassword#", 0)