1

Is there a Bitcoin "move" equivalent for Ethereum web3.eth ?

In Bitcoin:

move
<fromaccount> <toaccount> <amount> [minconf=1] [comment]
Move from one account in your wallet to another

(https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list)

Marc Alexander
  • 358
  • 4
  • 18

1 Answers1

1

For sending value from one account to another you can use, following web3.js API call -

web3.eth.sendTransaction({from:sender, to:receiver, value: amount})

Check this for more details on parameters available.

If you want to transfer the complete balance of one account to another then it's not directly possible.

However, there is a way which is already described in this answer - https://ethereum.stackexchange.com/a/5766/7790

Please take a look, hope this helps.

Sanchit
  • 3,482
  • 1
  • 12
  • 29