Interaction with a Blockchain

How to trade with it

How to interact with it!

as a web developer

Dapps

My first Contract

contract MyContract {

    string name;    // storage
    address owner;    

    function MyContract {
        name = 'My first contract';
        owner = msg.sender;
    }

    getName() public view returns(string) { // functions
        return name;
    }

    setName(string _name) public {
        name = _name
    }
}

Solidity

Tutorials/Ressources

Remix - Solidity IDE

Introduction to solidity and truffle/web3.js

By Dorian Somers

Introduction to solidity and truffle/web3.js

  • 39