August 2019
Intermediate to advanced
486 pages
13h 52m
English
The syntax for using transfer is as follows:
<address>.transfer(uint256 amount)
.transfer is used to transfer ether units in wei to another external account or contract account. In the call, address is the public address of external account or contract account, and the amount parameter is always specified in wei. The transfer method call fails if there is some exception, or failure occurred, perhaps because of running out of gas. It is recommended to use transfer over the address.send call.