Trouble Sending Ether

I am trying to send ether from one account to another. I am getting the following error:

eth.sendTransaction({from:c94110e71afe578aa218e4fc286403b0330ace8d, to:dba4bf98974e3f0edd5ce763b38ba813bf29e1dc, value: 1})
ReferenceError: 'c94110e71afe578aa218e4fc286403b0330ace8d' is not defined
at :1:27

Can anyone tell me what that error means, and how to correct it?

Answers

  • tym4ttym4t Nagata-ku, Kobe-shi, Hyogo-ken, JapanMember Posts: 71 ✭✭✭
    The addresses are string values in JavaScript so you need to enclose them in quotes or double quotes:

    eth.sendTransaction({from: "c94110e71afe578aa218e4fc286403b0330ace8d", to: "dba4bf98974e3f0edd5ce763b38ba813bf29e1dc", value: 1})
Sign In or Register to comment.