0

I am trying to send ether on private network. from chain1 to chain2. But it does not proceed. (But no error occures.)

> eth.getBalance(eth.accounts[1])
4999580000000000000

> eth.getBalance(eth.accounts[2])

0

I unlocked my account too...

> personal.unlockAccount(eth.accounts[1])
Unlock account 0xddc25843a212978640dedb119b9720f38da50d09
Passphrase: 
true

Transaction from the chain1 to the chain2

eth.sendTransaction({from: eth.accounts[1], to: eth.accounts[2], value: web3.toWei(2, "ether")})
"0x876cdad3f665434816a531f2bd303414d8c72b16339d6ff84f22ecafd354e666"

It looks like the transaction has been processed but..

> eth.getBalance(eth.accounts[2])
0

It did not..

8
  • Are you mining the chain?
    – Joe
    May 16, 2017 at 14:47
  • @Joe now?? I am not! May 16, 2017 at 14:48
  • it says > eth.getTransaction('0x876cdad3f665434816a531f2bd303414d8c72b16339d6ff84f22ecafd354e666') { blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000", blockNumber: null, May 16, 2017 at 14:48
  • You need to be mining for a transaction to go through
    – Joe
    May 16, 2017 at 14:48
  • I see. You mean, miner.start() ?? May 16, 2017 at 14:50

1 Answer 1

1

Thanks to @joe on the comment, the problem was that I was not mining. On the private net, you need to be mining to get the transaction done.

Your Answer

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

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