...
In the geth cli
type the following in order, substituting CREATOR_ABI
and CREATOR_BIN
for the json ABI and binary you generated with solc as per the above steps.
Code Block | ||
---|---|---|
| ||
var creator_abi = CREATOR_ABI; var creator_bin = 'CREATOR_BIN'; var creatorContract = web3.eth.contract(creator_abi); var daoCreatorContract = creatorContract.new({from: web3.eth.accounts[0], data: creator_bin, gas: 4000000}); |
...
In the above you have to make sure that your account web3.eth.accounts[0]
is unlocked and has enough eth. In the command line output you will see something like:
Code Block | ||
---|---|---|
| ||
> var daoCreatorContract = creatorContract.new({from: web3.eth.accounts[0], data: creator_bin, gas: 4000000}); I0420 00:37:20.795526 core/blockchain.go:959] imported 1 block(s) (0 queued 0 ignored) including 3 txs in 13.462901ms. #786251 [441a4574 / 441a4574] I0420 00:37:21.938507 eth/api.go:1150] Tx(0x46e61c63d8dd667cf113522f67d5c3a37b7e16e6e21922c661e9c7578a0df380) created: 0xa3bd72ef78f588a957f9a55994fd43f53f844314 undefined > I0420 00:37:23.988029 core/blockchain.go:959] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 3.471802ms. #786252 [83c4fed7 / 83c4fed7] |
...