0

I was watching a talk by Vitalik in DEVCON1 in which he says code can do three things one of them being code can send ETH to other contracts.

But can it send ETH to users account as well? Attached is the snapshot of slide Vitalik was using enter image description here

2

Yes, contracts can send ETH to both contracts and Externally Owned Accounts.

1

Yes, Contracts (Solidity code) can be used to send and receive ether from externally owned accounts.

Solidity offers three methods to send ether from contract:

  1. Address.send(amount)
  2. address.transfer(amount)
  3. address.call.value(amount)

Also, you can send ether to contract using Fallback Functions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.