November 2018
Intermediate to advanced
528 pages
13h 21m
English
Before we go any further, let's be concrete and jump into our first smart contract right away. The following code shows what a standard Hello World smart contract, written in a higher programming language (Solidity), looks like:
pragma solidity ^0.4.24;contract HelloWorld { string message = "hello world"; function setMessage(string msg_) public { message = msg_; } function getMessage() public view returns (string) { return message; }}
If you're a developer, this code should be understandable; there is nothing complex. We define a variable, message, with two functions, a setter and a getter. What differs is the fact that we are dealing with a contract that easily stores a given message in Ethereum's blockchain, without ...
Read now
Unlock full access