testing networks with 0 ether


I am very new to ethereum. I set an account, and I set a private network on my local machine using

geth --networkid 12345 --genesis ~/path/to/genesis.json --datadir ~/.ethereum_experiment console

Then I followed the `greeter` tutorial, found there.

Now, everything is running fine but I always get the output `undefined` when I put in the console

var greeter = greeterContract.new(_greeting,{from:web3.eth.accounts[0], data: greeterCompiled.greeter.code, gas: 300000}, function(e, contract){
if(!e) {

if(!contract.address) {
console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined...");

} else {
console.log("Contract mined! Address: " + contract.address);


I read this can be related to `0` ether account, but I thought I didn't need any ether when testing in a private network. Isn't it ?
Sign In or Register to comment.