Eth Send bug? Sent to: New Contract on accident :-(

Using the ether client in Ubuntu 14.04 I made my first transaction. It sent ~15 ether to absolutely no where.
According to etherchain.org the transaction was sent to New Client. Does anyone have any idea what happened?

Here is the from Address: https://etherchain.org/account/0xfbe0afcd7658ba86be41922059dd879c192d4c73

This is the to address generated by poloniex: https://etherchain.org/account/0xd042e5c2443591c48f1fba5f6baf8e7193f454b9

This address is not found, does this simply mean it has had Zero transactions? or has it not been created yet? I do not know.

Here is the transaction hash: https://etherchain.org/tx/0x31ded263506ea36e6ea777efc2c39a999e6fba4f4d338c7313af6aac6d9bf3e3

And the Block 47205: https://etherchain.org/block/47205

Here is my code from the transaction which I sent using Eth in Ubuntu:

web3.eth.sendTransaction({from:web3.eth.accounts[0xfbe0afcd7658ba86be41922059dd879c192d4c73], to:web3.eth.accounts[0xd042e5c2443591c48f1fba5f6baf8e7193f454b9], value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})


The hash popped up green as:

'0x31ded263506ea36e6ea777efc2c39a999e6fba4f4d338c7313af6aac6d9bf3e3'


Comments

  • gruntgrunt Member Posts: 5
    edited August 2015
    basically the to field can't have the w3.eth.accounts[] in it. The deposit or recieving address should be written like this, 'address'

    That is the mistake I made :neutral:

    I instead of sending created some sort of contract with those ether. I'm not sure what will happen to them now.
  • casscass Distributed Member Posts: 18
    edited August 2015
    grunt said:

    Using the ether client in Ubuntu 14.04 I made my first
    Here is my code from the transaction which I sent using Eth in Ubuntu:

    web3.eth.sendTransaction({from:web3.eth.accounts[0xfbe0afcd7658ba86be41922059dd879c192d4c73], to:web3.eth.accounts[0xd042e5c2443591c48f1fba5f6baf8e7193f454b9], value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})

    strange, when using your code for executing transaction (sure with me own adresses) i'm getting:
    could not decode, from not valid, is required at InvalidResponse (:-60926:-243) at send (:-124886:-243) at sendTransaction (:-113803:-243) at :1:1





    any idea?
  • sphinxsphinx Member Posts: 18
    Was this done on 1.0.1?
  • casscass Distributed Member Posts: 18
    edited August 2015
  • marqmarq Member Posts: 7

    web3.eth.sendTransaction({from:web3.eth.accounts[0xfbe0afcd7658ba86be41922059dd879c192d4c73], to:web3.eth.accounts[0xd042e5c2443591c48f1fba5f6baf8e7193f454b9], value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})
    This is incorrect syntax. It should be:

    web3.eth.sendTransaction({from:"0xfbe0afcd7658ba86be41922059dd879c192d4c73", to:"0xd042e5c2443591c48f1fba5f6baf8e7193f454b9", value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})
  • liondaniliondani Member Posts: 14
    marq said:


    web3.eth.sendTransaction({from:web3.eth.accounts[0xfbe0afcd7658ba86be41922059dd879c192d4c73], to:web3.eth.accounts[0xd042e5c2443591c48f1fba5f6baf8e7193f454b9], value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})
    This is incorrect syntax. It should be:

    web3.eth.sendTransaction({from:"0xfbe0afcd7658ba86be41922059dd879c192d4c73", to:"0xd042e5c2443591c48f1fba5f6baf8e7193f454b9", value: web3.toWei(14.985, "ether"), gasPrice: web3.toWei(500, "gwei"), gas:21000})

    I tried with your syntax and I get this error:

    could not unlock signer account
    at InvalidResponse (:-60926:-204)
    at send (:-124886:-204)
    at sendTransaction (:-113803:-204)
    at :1:1

  • gruntgrunt Member Posts: 5
    edited August 2015
    The from address is okay in this format. However i believe the send address is only correct in this format if it is stored within your wallet.

    I was using the current updated version of eth to make this transaction.

    I submitted this as a bug and received a response:

    "Hi,

    We figured out what happened:

    web3.eth.accounts[0xd042e5c2443591c48f1fba5f6baf8e7193f454b9] did not find the account for that address, and so returned empty.

    That caused the "to" field in web3.eth.sendTransaction to be empty, which caused it to create a smart contract instead of sending ether to the address.

    I'll make an issue so this can be avoided in the API.

    Cheers,
    Gustav Simonsson"

    So this is because it didn't find an account in my listed accounts for that address.
Sign In or Register to comment.