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)

2
  • Move only transfer's balance from one account to another?
    – Sanchit
    Jul 15, 2017 at 8:47
  • In the same wallet. Jul 15, 2017 at 13:45

1 Answer 1

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.

3
  • The question asks if there is a move equivalent feature. Jul 15, 2017 at 19:20
  • 1
    I clearly mentioned its not directly possible which means there is no equivalent feature. Please read before down voting any answer.
    – Sanchit
    Jul 15, 2017 at 19:21
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – eth
    Jul 15, 2017 at 22:59

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.