title: Error: insufficient funds for gas * price + value
body: <p>I am going through the <a href="https://ethereum.org/greeter" rel="nofollow noreferrer">first tutorial in the Ethereum website</a>.</p>
  
  <p>I've compiled the contract code using Remix and have created the following script. I have removed the binary strings for brevity:</p>
  
  <pre><code>var _greeting = 'Hello World!';
  var browser_untitled_sol_greeterContract = web3.eth.contract([{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"greet","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_greeting","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]);
  var browser_untitled_sol_greeter = browser_untitled_sol_greeterContract.new(
   _greeting,
   {
     from: web3.eth.accounts[0], 
     data: 'BINARY_STRING', 
     gas: '4700000'
   }, function (e, contract){
     console.log(e, contract);
     if (typeof contract.address !== 'undefined') {
       console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
     }
  })
  
  var browser_untitled_sol_mortalContract = web3.eth.contract([{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]);
  var browser_untitled_sol_mortal = browser_untitled_sol_mortalContract.new(
     {
       from: web3.eth.accounts[0], 
       data: 'BINARY_STRING', 
       gas: '4700000'
     }, function (e, contract){
       console.log(e, contract);
       if (typeof contract.address !== 'undefined') {
         console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
     }
  })
  </code></pre>
  
  <p>When loading this script I get:</p>
  
  <p><code>Error: insufficient funds for gas * price + value</code>.</p>
  
  <p>When calling <code>eth.getBalance(eth.accounts[0])</code> I get: <code>399577000000000</code></p>
  
  <p>I can't figure out how much eth I should have in my balance in order to run this script or if I need to convert eth to gas.</p>