7

How to participate to Gnosis pre-sale using geth javascript console?

In gnosis official blog is described how to do it using parity but there's no information on how to do it using geth.

1 Answer 1

6

start geth console

$ geth --fast console

in console :

var gnosisAuctionABI = [{"inputs":[{"type":"address","name":""}],"constant":true,"name":"bids","payable":false,"outputs":[{"type":"uint256","name":""}],"type":"function"},{"inputs":[{"type":"address","name":"receiver"}],"constant":false,"name":"bid","payable":true,"outputs":[{"type":"uint256","name":"amount"}],"type":"function"},{"inputs":[{"type":"address","name":"receiver"}],"constant":false,"name":"claimTokens","payable":false,"outputs":[],"type":"function"},{"inputs":[{"indexed":true,"type":"address","name":"sender"},{"indexed":false,"type":"uint256","name":"amount"}],"type":"event","name":"BidSubmission","anonymous":false}]

var gnosisAuction = eth.contract(gnosisAuctionABI).at("0x1d0dcc8d8bcafa8e8502beaeef6cbd49d3affcdc");

var myAccount = "{your account}".toLowerCase(); var amount = 0.1; /* ethers you want to spend */

personal.unlockAccount(myAccount); gnosisAuction.bid(myAccount, {from: myAccount, value:web3.toWei(amount), gas: 150000});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.