Ethereum IDE를 통해 SimpleCoin을 구현 해보겠다.
pragma solidity ^0.4.0;
contract SimpleCoin {
//멤버필드
mapping(address => uint256) public coinBlance;
//생성자
constructor()public {
coinBlance[msg.sender] = 1000;
}
//매서드
function transfer(address _to, uint256 _amount) public {
coinBlance[msg.sender] += _amount;
coinBlance[_to] += _amount;
}
}
클릭->Ethereum IDE
온라인 개발도구를 사용해서 코드를 작성하고 컴파일하거나 배포할 수 있다.

접속하면 위 화면이 보인다.

constracts에서 파일 추가하기 버튼을 이용해 SimpleCoin.sol파일을 생성한 뒤 위 코드를 작성해 주었다.