Thursday, 22 February 2018

ERC-20 Smart Contract on Ethereum block chain -Sandeep Kanao-

ERC-20 smart contract on Ethereum block chain using Solidity


Remix Solidity can be accessed at - Remix

Sample Solidity ERC-20 Ethereum Smart contract on Ethereum blockchain (Ropster Test Net)-

pragma solidity ^0.4.4;
contract Counter {
    int private count = 0;
    function incrementCounter() public {
        count += 1;
    }
    function decrementCounter() public {
        count -= 1;
    }
    function getCount() public constant returns (int) {
        return count;
    }
}

2. Make sure Metamax browser extension is installed, and set to Ropsten Test Net account

3. Compile and Run and view transaction at Etherscan


No comments:

Post a Comment