abhi1010 / ico-runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ITO Creator

How to run the sample

  1. setup virtualenv
  2. Install dependencies (note: they are hard-coded; ask me why)

Geth setup

Initialize a chain

This will also initialize the chain

./scripts/setup_chain.sh

Run the chain

./chains/horton/run_chain.sh

Geth sample commands

Run a one-off command

geth attach <IPC_FULL_PATH> --exec <COMMAND>

Accounts

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)

About


Languages

Language:Python 98.7%Language:Shell 1.3%