Firstly I installed geth and it's running I created an account and verified keystore file in the location:


Then I used:


Its created an account and verified the location in:


Both of these accounts have test ethers. how should I transfer ether between them? How should I authenticate the transfer?

Another issue I am facing in contract deployment

truffle migrate command throws an error migrate error

  • Try to configure your truffle.js file with the gas param,which must be less than or equal to gas specified in your testnet genesis file Feb 22 '18 at 9:02
  • For transfering ethers use web3.eth.sendTransaction({from:sender, to:receiver, value: amount}) Feb 22 '18 at 9:05
  • For authentication ie to unlock your account for transfer ethers use web3.personal.unlockAccount(“0xf48bbe21fb862029ef635fc778716f6b494313f4”, "password", 0); Feb 22 '18 at 9:07
  • Test genseis file where to find that.?
    – Rakesh
    Feb 22 '18 at 9:10
  • How to see gas.?
    – Rakesh
    Feb 22 '18 at 9:11

Add the gasLimit:2000000 field in your truffle.js file.

It defines the maximum amount of gas expenditure allowed per block. If your contract uses more than this,it raises the above error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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