Solidity Programming Essentials

A beginner's guide to build smart contracts for Ethereum and blockchain

Ritesh Modi

Digital

Available

Solidity is a contract-oriented language whose syntax is highly influenced by JavaScript, and is designed to compile code for the Ethereum Virtual Machine. Solidity Programming Essentials will be your guide to understanding Solidity programming to build smart contracts for Ethereum and blockchain from ground-up.

We begin with a brief run-through of blockchain, Ethereum, and their most important concepts or components. You will learn how to install all the necessary tools to write, test, and debug Solidity contracts on Ethereum. Then, you will explore the layout of a Solidity source file and work with the different data types. The next set of recipes will help you work with operators, control structures, and data structures while building your smart contracts. We take you through function calls, return types, function modifers, and recipes in object-oriented programming with Solidity. Learn all you can on event logging and exception handling, as well as testing and debugging smart contracts.

By the end of this book, you will be able to write, deploy, and test smart contracts in Ethereum. This book will bring forth the essence of writing contracts using Solidity and also help you develop Solidity skills in no time.

What will you learn from this book

  • Learn the basics and foundational concepts of Solidity and Ethereum
  • Explore the Solidity language and its uniqueness in depth
  • Create new accounts and submit transactions to blockchain
  • Get to know the complete language in detail to write smart contracts
  • Learn about major tools to develop and deploy smart contracts
  • Write defensive code using exception handling and error checking
  • Understand Truffle basics and the debugging process

Who this book is for

This book is for anyone who would like to get started with Solidity Programming for developing an Ethereum smart contract. No prior knowledge of EVM is required.

Table of Contents

  1. Introduction to Blockchain, Ethereum, and Smart Contracts
  2. Installing Ethereum and Solidity
  3. Introducing Solidity
  4. Global Variables and Functions
  5. Expressions and Control Structures
  6. Writing Smart Contracts
  7. Functions, Modifiers, and Fallbacks
  8. Exceptions, Events, and Logging
  9. Truffle Basics and Unit Testing
  10. Debugging Contracts
Language English
ISBN-13 9781788831383
No of pages 222
Book Publisher Packt Publishing
Published Date 20 Apr 2018

About Author

Author : Ritesh Modi

NA
  • Get you up and running with Solidity Programming language
  • Build Ethereum Smart Contracts with Solidity as your scripting language
  • Learn to test and deploy the smart contract to your private Blockchain

Related Books