Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Basic smart contract

Ethereum makes use of a domain-specific language called as Solidity to code the logic of the smart contract. Solidity is a high-level programming language that can be compiled to produce bytecode, which is then executed on the EVM.

Solidity is a statically typed programming language initially proposed by Gavin Wood. It was designed to be similar to ECMAScript syntax so that it can be easily adapted by the web developer community. More details about the Solidity programming language can be found at https://solidity.readthedocs.io.

We'll create a simple hello world smart contract using the Solidity programming language:

pragma solidity ^0.4.23; contract Hello { function greetUser(bytes user) view public returns (bytes) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content