0

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

~/Library/ethereum/testnet/keystore

Then I used:

Web3.personal.newAccount('password')

Its created an account and verified the location in:

~/Library/ethereum/testnet/keystore

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

bumped to the homepage by Community 11 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • 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 – Crissi Mariam Robert Feb 22 '18 at 9:02
  • For transfering ethers use web3.eth.sendTransaction({from:sender, to:receiver, value: amount}) – Crissi Mariam Robert Feb 22 '18 at 9:05
  • For authentication ie to unlock your account for transfer ethers use web3.personal.unlockAccount(“0xf48bbe21fb862029ef635fc778716f6b494313f4”, "password", 0); – Crissi Mariam Robert 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
0

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.