I made ethereum contract according to sample code. And then generated ethereum wallet. The abstract contract is as follow.

pragma solidity ^0.4.18;

 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);

Now I want to send ether to other using this contract. How to send transaction using contract? plz help me.

1 Answer 1


let the address you wish to transfer ether to be adr


the value inside transfer would be in Wei

  • Hi @Skyuppercut. This answer is helpful for me, but not enough to understand. plz tell me in detail. thanks.
    – Coder HHC
    Commented Jun 6, 2018 at 5:14
  • transfer is an inbuilt function of type 'address'. It can be used to send ether to addresses. Start reading the documentation link Commented Jun 6, 2018 at 8:19

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.