Book description
Learn the most powerful and primary programming language for writing smart contracts and find out how to write, deploy, and test smart contracts in Ethereum.
About This Book- 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
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.
What You Will Learn- 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
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.
Style and approachSolidity is a high-level programming language best understood using examples. After covering basic concepts of Ethereum and Solidity, programming constructs will be explained with help of examples. As chapters progress, deployment, usage and testing of contacts will form major aspect of the book. Troubleshooting and unit testing is an important exercise and skill to master this language will also be covered in this book.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Introduction to Blockchain, Ethereum, and Smart Contracts
- Installing Ethereum and Solidity
- Introducing Solidity
- Global Variables and Functions
- Expressions and Control Structures
- Writing Smart Contracts
- Functions, Modifiers, and Fallbacks
- Exceptions, Events, and Logging
- Truffle Basics and Unit Testing
- Debugging Contracts
- Other Books You May Enjoy
Product information
- Title: Solidity Programming Essentials
- Author(s):
- Release date: April 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788831383
You might also like
book
Solidity Programming Essentials - Second Edition
A comprehensive guide sprinkled with lots of hands-on code samples to get you up and running …
book
Programming Languages: Concepts and Implementation
Programming Languages: Concepts and Implementation teaches language concepts from two complementary perspectives: implementation and paradigms. It …
book
Linux Kernel Programming
Learn how to write high-quality kernel module code, solve common Linux kernel programming issues, and understand …
book
Introducing Erlang, 2nd Edition
If you’re new to Erlang, its functional style can seem difficult, but with help from this …