34: Sending Ether
Ether is the native currency of the Ethereum blockchain, and it can be sent from one address to another. This article will provide some examples of how to send Ether using Solidity.
Using send
The send function allows you to send Ether from the current contract to an external account. It takes two arguments:
The recipient address
The amount of Ether to send
Tips: dont use send
Using transfer
The transfer function allows you to send Ether from the current contract to an external account. It takes two arguments:
The recipient address
The amount of Ether to send
Using call
The call function allows you to execute a function on an external contract. It takes three arguments:
The address of the external contract
The data for the function call
The amount of Ether to send (optional)
Tips: before using call
make amount in zero! red more here
That's it for the lesson 34! In the next lesson, Receive
Last updated