Not able to send ethers in private ethereum network

0 votes

I am trying to send some ethers from one account to another. I have set up the private ethereum network. This is the command I am using to send ethers:

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

I am getting an authentication error. I don't know how to set authentication. Please help

Jan 9, 2019 in Blockchain by slayer
• 29,270 points
103 views

1 answer to this question.

0 votes

Your account is locked by default due to which you are not able to make the transaction. To make the transaction, you have to first unlock the account. You can unlock the transaction using this command:

personal.unlockAccount(eth.accounts[0], "<password>")

Replace <password> with the passphrase set for that account and then send ethers:

eth.sendTransaction({from:eth.accounts[0], to:eth.accounts[1], value: web3.toWei(4, "ether")})
answered Jan 9, 2019 by Omkar
• 69,040 points

Related Questions In Blockchain

0 votes
1 answer

How to get account with ethers by default in ethereum private network?

Have you created an account before allocating ...READ MORE

answered Jan 9, 2019 in Blockchain by Omkar
• 69,040 points
230 views
–1 vote
1 answer

Not able to create new account in geth for private ethereum blockchain

personal.newAccount() is not a default geth method. This ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 69,040 points
857 views
0 votes
1 answer

Not able to connect nodes on Ethereum Private Network using bootnodes.

If you have created the private network ...READ MORE

answered Jan 27, 2019 in Blockchain by Omkar
• 69,040 points
407 views
0 votes
1 answer

Unable to perform an operation in Ethereum private network

It seems that the Unix socket can't ...READ MORE

answered Jul 31, 2018 in Blockchain by Shashank
• 10,380 points
129 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,810 points
347 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 1,012 views
+1 vote
2 answers

Not able to create new account in geth for private ethereum network

Looks like the account you are trying ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 69,040 points
584 views
0 votes
1 answer

Not able to invoke a contract in Ethereum Private chain using geth

Hope this helps: contract mortal { /* ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 69,040 points
119 views