Building Ethereum ĐApps
Decentralized Applications on the Ethereum Blockchain
Roberto Infante
  • MEAP began December 2017
  • Publication in Fall 2018 (estimated)
  • ISBN 9781617295157
  • 375 pages (estimated)
  • printed in black & white
There's a lot of Google-buzz about the explosion of cryptocurrencies like Bitcoin and Ether and the "blockchain" programming model that makes them work. Decentralized applications, aka DApps, extend blockchain beyond cryptocurrency, providing an innovative way to support private, secure, peer-to-peer transactions. DApps offer app developers the same advantages as a cryptocurrency like Bitcoin. DApp transactions are signed and stored cryptographically. Logic and state are decentralized over the nodes of a wide network, and records are immutable. Building Ethereum ĐApps teaches you how to exploit these benefits and the blockchain to build powerful distributed apps with Ethereum!

"It's a great introduction to Solidity and the Ethereum development ecosystem, great visuals, and detailed definitions. It's strong technically and not too wordy."

~ Godfred Asamoah

"A good hands-on intro to the Ethereum platform."

~ Jürgen Hötzel

"An excellent introduction to this fascinating topic, which is changing the way we think about distributed computation."

~ Michael Bright

Table of Contents detailed table of contents

Part 1: Getting Started With Ethereum

1. A first look at Decentralized Applications

1.1. What is a Dapp?

1.1.1. Dapps vs conventional centralized applications

1.1.2. Static view: anatomy of a Dapp

1.1.3. Dynamic view: through the lifecycle of a transaction

1.1.4. Development view: deploying the voting smart contract

1.1.5. Let's get familiar with some Dapp terminology

1.2. What technologies make Dapps viable?

1.2.1. Blockchain technologies

1.2.2. Ethereum technologies

1.3. Good and bad Dapps

1.3.1. Good use cases

1.3.2. Pointless Dapps

1.4. A five-minute Dapp implementation

1.4.1. Let's start building SimpleCoin, a basic cryptocurrency

1.4.2. Let's run the contract

1.4.3. Let's interact with the contract

1.5. Summary

2. The Ethereum platform

2.1. Connecting to Ethereum through the wallet

2.1.1. Getting started with the Ethereum wallet

2.1.2. Performing common operations with the wallet

2.2. Smart contracts: the brain of Dapps

2.2.1. Accounts

2.2.2. Ether

2.2.3. Gas

2.2.4. Calls and transactions

2.2.5. The Ethereum Virtual Machine

2.3. Connecting to Ethereum with geth

2.3.1. Getting started with geth

2.3.2. A first look at the geth interactive console

2.3.3. A first look at JSON-RPC

2.3.4. Mining with geth console

2.3.5. Other clients

2.4. Managing accounts with geth

2.4.1. Ethereum accounts

2.4.2. Managing accounts with the geth command

2.4.3. Managing accounts with Web3 on the geth console

2.4.4. Managing accounts with JSON-RPC

2.5. Revisiting SimpleCoin's contract

2.5.1. Improving SimpleCoin's contract

2.5.2. Trying out the amended code

2.6. Summary

3. Managing our first smart contract

Part 2: Implementing Smart Contracts

4. Programming smart contracts in Solidity

5. Writing more complex smart contracts

6. Managing smart contracts with Web3

Part 3: Developing Real World DApps With The Truffle

7. The Ethereum ecosystem

8. Upgrading SimpleCoin and SimpleCrowdsale Dapps into end-to-end Dapps

9. Putting all together: building a complete Voting Dapp

Part 4: Going To Production

10. Making the Dapp production ready

11. Conclusion


Appendix A: Inlining assembly code

About the Technology

The first decentralized blockchain applications were built on the Bitcoin platform. Ethereum was the first fully-programmable blockchain platform that enabled smart contracts--network-based programming logic that uses the blockchain to enforce transaction rules. With this development, Ethereum drew the attention of developers all over the world!

With DApps built on the Ethereum blockchain, you can establish persistent, reliable ownership records for actions such as buying a car or a house with smart contracts to enforce blockchain-based verification before a transaction can be completed. DApps can preserve intellectual property rights by establishing clear ownerships claims for digital assets like photographs or documents. DApps are also idea for securing personal records, like voting or medical histories, or establishing supply-chain provenance for goods like wine, art, or industrial parts.

About the book

Building Ethereum ĐApps introduces you to decentralized applications based on the Ethereum blockchain platform. You'll learn the principles of DApps development by rolling up your sleeves and actually building a few! You'll get a high-level overview of decentralized applications and the underlying technologies, including the Ethereum wallet and the Go Ethereum client. You'll discover how to design smart contracts to enforce transaction rules, and then implement them in Ethereum's JavaScript-like Solidity language. Because DApps are decentralized, and therefore need to be distributed across many nodes, you'll learn to deploy them onto private or public Ethereum networks.

The Ethereum ecosystem is large and growing! Along the way, you'll explore Ethereum tools such as the Truffle DApp framework, which greatly improves the efficiency of the DApp development lifecycle. As you go, you'll progressively build your knowledge and skills as you build a fully functional DApp from design to deployment.

What's inside

  • Understanding decentralized applications and the underlying technologies
  • Learning the key components of the Ethereum platform
  • Implementing smart contracts in Solidity
  • Communicating with a smart contract in Web3
  • Developing DApps with Truffle
  • Improving your design and security with best practices

About the reader

Written for developers with intermediate experience in an OO language or in JavaScript. Some understanding and experience with blockchain concepts is helpful.

About the author

Roberto Infante is an independent software development consultant who specializes in finance. Throughout his career, he has worked on a variety of innovative projects, such as the first internet mortgage approval system in the UK and one of the first online insurance underwriting systems in London.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $39.99 pBook + eBook + liveBook
MEAP eBook $31.99 pdf + ePub + kindle + liveBook

FREE domestic shipping on three or more pBooks