Solidity Programming Essentials: Quick start to building Smart Contracts for Ethereum and Blockchain
- Length: 205 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2018-05-09
- ISBN-10: 1788831381
- ISBN-13: 9781788831383
- Sales Rank: #1039095 (See Top 100 Books)
Learn the most powerful and primary programming language for writing smart contracts and find out how to write, deploy, consume, test smart contracts in Ethereum.
Key Features
- 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
Book Description
Solidity is a high-level language whose syntax is similar to that of JavaScript and it is designed to compile to code for the Ethereum Virtual Machine. This book will be your guide to understand Solidity Programming to build Smart Contracts for Ethereum and Blockchain.
You will begin with a brief understanding of Blockchain, Ethereum and the Ethereum virtual machine. From here you will be taken through topics that will help you understand the Solidity programming language. You will install all necessary tools to write, test, deploy and debug solidity contracts on Ethereum. You will learn the layout of a Solidity source file and will learn to work with the different data types with Solidity. You will then be taken through solutions while working with the Globally available functions with Solidity. The next set of recipes will help you work with Operators, Control Structures, and Data Structures while building your Smart Contracts. In detain, you will be taken through Function calls, Return types, and Function Modifiers. You will then be taken through recipes in Object Oriented Programming with Solidity. You will then learn to Import, and deploy your smart contracts into your private Blockchain. Furthermore, you will be taken through recipes on Event Logging and Exception Handling and finally, you will be taken through recipes to test and debug your Smart contracts.
What you will learn
- Learn the basics and foundational concepts of Solidity and Ethereum to write smart contract
- Find out how to write, deploy, consume, test smart contracts in Ethereum.
- Learn the security best practices while writing smart contracts
- Learn to create new accounts submit transactions to Blockchain
- Get to know the complete language in detail to write smart contracts.
- Learn major tools to develop, test and deploy smart contracts
- Write defensive code using exception handling and error checking
- Understand debugging process and details for smart contracts
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 knowledge of the EVM is assumed.
Table of Contents
Chapter 1. Introduction to Blockchain, Ethereum, and Smart Contracts
Chapter 2. Installing Ethereum and Solidity
Chapter 3. Introducing Solidity
Chapter 4. Global Variables and Functions
Chapter 5. Expressions and Control Structures
Chapter 6. Writing Smart Contracts
Chapter 7. Functions, Modifiers, and Fallbacks
Chapter 8. Exceptions, Events, and Logging
Chapter 9. Truffle Basics and Unit Testing
Chapter 10. Debugging Contracts