Building Ethereum Dapps


Book Description

Summary Building Ethereum Dapps introduces you to decentralized applications based on the Ethereum blockchain platform. In this book, you'll learn the principles of Dapps development by rolling up your sleeves and actually building a few! Foreword by Thomas Bertani. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Imagine unbreakably secure applications that handle personal and business transactions without any central agency controlling the process. Decentralized applications, or Dapps, do just this, shifting power to users. The Ethereum blockchain platform provides the tools you need to build Dapps, including an innovative "smart contracts" model and Solidity, a Dapp-aware JavaScript-like programming language. About the Book Building Ethereum Dapps teaches Dapps development on the Ethereum blockchain platform. You'll begin with a mental model of how Dapps operate, and then dive into designing and implementing smart contracts in Ethereum's Solidity language. You'll explore Ethereum smart contract development tools, like Truffle and Web3, and pick up best practices for design and security. Practical exercises throughout give you valuable hands-on experience. What's inside Ethereum's key components Implementing smart contracts in Solidity Communicating with a smart contract in Web3 Developing Dapps with Truffle Best practices for design and security improvement About the Reader For developers with intermediate experience in JavaScript or an OO language. Familiarity with blockchain concepts is helpful. About the Author Roberto Infante is a software development consultant who specializes in finance. He currently works on financial risk management systems and on blockchain technology. Table of Contents PART 1 A first look at decentralized applications Understanding the blockchain The Ethereum platform Deploying your first smart contract PART 2 Programming smart contracts in Solidity Writing more complex smart contracts Generalizing functionality with abstract contracts and interfaces Managing smart contracts with Web3.js PART 3 The Ethereum ecosystem Unit testing contracts with Mocha Improving the development cycle with Truffle Putting it all together: Building a complete voting Dapp PART 4 Making a Dapp production ready Security considerations Conclusions




Mastering Ethereum


Book Description

Ethereum represents the gateway to a worldwide, decentralized computing paradigm. This platform enables you to run decentralized applications (DApps) and smart contracts that have no central points of failure or control, integrate with a payment network, and operate on an open blockchain. With this practical guide, Andreas M. Antonopoulos and Gavin Wood provide everything you need to know about building smart contracts and DApps on Ethereum and other virtual-machine blockchains. Discover why IBM, Microsoft, NASDAQ, and hundreds of other organizations are experimenting with Ethereum. This essential guide shows you how to develop the skills necessary to be an innovator in this growing and exciting new industry. Run an Ethereum client, create and transmit basic transactions, and program smart contracts Learn the essentials of public key cryptography, hashes, and digital signatures Understand how "wallets" hold digital keys that control funds and smart contracts Interact with Ethereum clients programmatically using JavaScript libraries and Remote Procedure Call interfaces Learn security best practices, design patterns, and anti-patterns with real-world examples Create tokens that represent assets, shares, votes, or access control rights Build decentralized applications using multiple peer-to-peer (P2P) components




Building Games with Ethereum Smart Contracts


Book Description

Learn how to take your existing knowledge of Ethereum and Solidity to the next level. Hone your development skills and become more familiar with the syntax of the Solidity language by working through well-tested, well-documented intermediate-level sample projects. You will begin by covering the basics of Ethereum, Solidity, and gaming theory. From there, you will move onto sample projects that use smart contract engineering to create fun casino-style games that you can deploy and test on your friends and colleagues with real ether. All games are provably fair and auditable, so that players know the house won’t always win! Ideal for any reader with exposure to Ethereum, the techniques this book teaches are applicable to game developers, software engineers, web developers, and cryptocurrency enthusiasts. What You'll Learn Use various features and best practices for smart contract programming in Ethereum and Solidity Develop and deploy games of chance, similar to the kind you’d find in a casino Create fun, easy projects with Ethereum lntegrate the Ethereum blockchain into games Who This Book Is For Entry-level programmers with some exposure to Ethereum; game developers, Blockchain and cryptocurrency enthusiasts looking to add Ethereum and Solidity development to their skill set; software engineers and Web developers




Ethereum Projects for Beginners


Book Description

Understand the Ethereum platform to build distributed applications that are secured and decentralized using blockchain technology Key Features Build your own decentralized applications using real-world blockchain examples Implement Ethereum for building smart contracts and cryptocurrency applications with easy-to-follow projects Enhance your application security with blockchain Book Description Ethereum enables the development of efficient, smart contracts that contain code. These smart contracts can interact with other smart contracts to make decisions, store data, and send Ether to others.Ethereum Projects for Beginners provides you with a clear introduction to creating cryptocurrencies, smart contracts, and decentralized applications. As you make your way through the book, you’ll get to grips with detailed step-by-step processes to build advanced Ethereum projects. Each project will teach you enough about Ethereum to be productive right away. You will learn how tokenization works, think in a decentralized way, and build blockchain-based distributed computing systems. Towards the end of the book, you will develop interesting Ethereum projects such as creating wallets and secure data sharing.By the end of this book, you will be able to tackle blockchain challenges by implementing end-to-end projects using the full power of the Ethereum blockchain. What you will learn Develop your ideas fast and efficiently using the Ethereum blockchain Make writing and deploying smart contracts easy and manageable Work with private data in blockchain applications Handle large files in blockchain applications Ensure your decentralized applications are safe Explore how Ethereum development frameworks work Create your own cryptocurrency or token on the Ethereum blockchain Make sure your cryptocurrency is ERC20-compliant to launch an ICO Who this book is for This book is for individuals who want to build decentralized applications using blockchain technology and the power of Ethereum from scratch. Some prior knowledge of JavaScript is required, since most examples use a web frontend.




Ethereum Smart Contract Development


Book Description

Become an Ethereum Blockchain developer using a blend of concepts and hands-on implementations Key Features Understand the Ethereum Ecosystem and its differences from its rich cousin Bitcoin Explore the Solidity programming language and smart contract optimizations Get a developer’s perspective of Blockchain-as-a-technology with exposure to common challenges faced while building decentralized applications Book Description Ethereum is a public, blockchain-based distributed computing platform featuring smart contract functionality. This book is your one-stop guide to blockchain and Ethereum smart contract development. We start by introducing you to the basics of blockchain. You'll learn about hash functions, Merkle trees, forking, mining, and much more. Then you'll learn about Ethereum and smart contracts, and we'll cover Ethereum virtual machine (EVM) in detail. Next, you'll get acquainted with DApps and DAOs and see how they work. We'll also delve into the mechanisms of advanced smart contracts, taking a practical approach. You'll also learn how to develop your own cryptocurrency from scratch in order to understand the business behind ICO. Further on, you'll get to know the key concepts of the Solidity programming language, enabling you to build decentralized blockchain-based applications. We'll also look at enterprise use cases, where you'll build a decentralized microblogging site. At the end of this book, we discuss blockchain-as-a-service, the dark web marketplace, and various advanced topics so you can get well versed with the blockchain principles and ecosystem. What you will learn Know how to build your own smart contracts and cryptocurrencies Understand the Solidity language Find out about data types, control structure, functions, inheritance, mathematical operations, and much more See the various types of forks and discover how they are related to Ethereum Get to know the various concepts of web3.js and its APIs so you can build client-side apps Build a DAO from scratch and acquire basic knowledge of DApps on Ethercast Be guided through the project so you can optimize EVM for smart contracts Build your own decentralized applications (DApps) by taking a practical approach Who this book is for If you want to know the ins and outs of the Ethereum network and build your own decentralized applications, then this book is what you need! This book is for anyone who is interested in blockchain and wants to become an Ethereum developer. It’s ideal for existing Ethereum developers who want to develop Ethereum using smart contracts. Basic knowledge of cryptography is expected but is not mandatory.




Learn Ethereum


Book Description

Explore the blockchain-based decentralized platform and understand how Ethereum works with Dapps examples Key Features Explore the Ethereum ecosystem and understand the latest research on the platform Build decentralized apps (Dapps) using smart contracts and Ethereum with the help of practical examples Learn to make your decentralized applications fast and highly secure Book DescriptionEthereum is a blockchain-based, decentralized computing platform that allows running smart contracts. This book provides a basic overview of how Ethereum works, its ecosystem, mining process, and the consensus mechanism. It also demonstrates a step-by-step approach for building decentralized applications. This book begins with the very basics of Blockchain technology. Then it dives deep into the Ethereum architecture, framework and tools in its ecosystem. It also provides you an overview of ongoing research on Ethereum, for example, Layer 1 and 2 scaling solution, Stablecoin, ICO/STO/IEO, etc. Next, it explains Solidity language in detail, and provides step-by-step instructions for designing, developing, testing, deploying, and monitoring decentralized applications. In addition, you’ll learn how to use Truffle, Remix, Infura, Metamask, and many other Ethereum technologies. It’ll also help you develop your own cryptocurrency by creating ERC20, and ERC721 smart contracts from scratch. Finally, we explain private blockchains, and you learn how to interact with smart contracts through wallets.What you will learn Understand the concepts of blockchain and cryptocurrency Master Ethereum development tools such as Truffle, Remix IDE and Infura Delve into smart contract development Develop DApps frontend using Node.js, React.js, and Web3js API Learn Etherscan and other tools to secure and monitor smart contracts Develop and debug smart contracts by working with Remix Apply Truffle suite to compile, migrate, and unit test smart contracts Explore smart contracts such as ERC20 token and decentralized digital market Who this book is forThis book is for all developers and architects who want to explore Ethereum blockchain fundamentals and get started with building real-world decentralized applications. Knowledge of an object-oriented programming language such as JavaScript will be useful but not mandatory.




Ethereum for Web Developers


Book Description

Technology is constantly evolving, and blockchain is taking development to new places, as mobile did a decade ago – and Ethereum is the leading platform for creating this new wave of applications. This book reveals everything you need to create a robust decentralized application (more commonly known as DApp). Unlike other books on the topic, this one focuses on the web application layer, and guides you in creating great experiences on top of the Ethereum blockchain. You’ll review the challenges and differences involved in developing DApps as opposed to traditional web applications. After a brief introduction to blockchain history and Ethereum in particular, you’ll jump directly into building a sample decentralized application, to familiarize yourself with all the moving pieces. This book offers specific chapters on querying and rendering data from the blockchain, reacting to events, interacting with user accounts, sending transactions, managing gas, handling confirmations and reorganizations, and more. You will also find a chapter dedicated to Solidity that will give you the necessary means to understand and even build your own smart contracts. Other important topics covered include building backend servers that act as indexing layers, and managing storage efficiently with solutions like the interplanetary file system, or IPFS. Last but not least, you will find chapters that examine the biggest problems on Ethereum today: onboarding and scalability. These include the state of the art of the available strategies to tackle them, such as meta-transactions, smart accounts, ENS, state channels, sidechains, and more. What You'll Learn Connect to the blockchain from the browser and send transactions from client-sideBuild a web app that provides a read-only interface to a blockchain contract Create a wallet interface for arbitrary fungible tokens, displaying the user’s balance and allowing for simple transfers to other addressesDevelop a web app that stores large blobs of data off-chain, and keeps a reference to it on-chain (e.g. avatars, long text descriptions) Produce a web app that relies on a centralized server for indexing on-chain information to be presented to the user Who This Book Is For Web developers focused on client-side applications, with knowledge of JavaScript and HTML/CSS. You do not need any prior knowledge of Blockchain, Ethereum, or cryptocurrency.




A Developer's Guide to Ethereum


Book Description

Blockchain technology has certainly been hyped over the past few years, but when you strip all of that away, what can actually do with it? This book is a collection of articles that provide an introduction to Ethereum, an open source platform that's based based on blockchain. It enables developers to build and deploy decentralized applications that can be relied on to work without fraud, censorship or interference from third parties. We start off by explaining what blockchain is and how it works, and also look at some potential practical applications for blockchain technology. We then move on to looking at the Ethereum platform specifically. Far more than just a cryptocurrency or smart contracts platform, Ethereum is becoming an entire ecosystem for building decentralized applications. This book contains: Blockchain: What It Is, How It Works, Why It's So Popular by Bruno Skvorc What is a Bitcoin Node? Mining versus Validation by Bruno Skvorc How the Lightning Network Helps Blockchains Scale by Bruno Skvorc The Top Nine Uses for Blockchain by Mateja Kendel Introduction to Ethereum: A Cryptocurrency with a Difference by Bruno Skvorc A Deep Dive into Cryptography by Bruno Skvorc 3 Bitcoin Alternatives Compared: Ethereum, Cardano and NEO by David Attard Compiling and Smart Contracts: ABI Explained by Mislav Javor Ethereum Wallets: Send and Receive Ether with MyEtherWallet by Bruno Skvorc Ethereum: How Transaction Costs are Calculated by Bruno Skvorc Proof of Stake vs Proof of Work by Bruno Skvorc Ethereum's Casper: Ghostbusting Proof of Stake Problems by Tonino Jankov Decentralized Storage and Publication with IPFS and Swarm by Tonino Jankov Ethereum Messaging: Explaining Whisper and Status.im by Tonino Jankov Ethereum: Internal Transactions & Token Transfers Explained by Bruno Skvorc BigchainDB: Blockchain and Data Storage by Chris Ward This book is for anyone interested in using the Ethereum platform for development. No prior knowledge of blockchain is assumed.




Ethereum For Dummies


Book Description

Dive into a secure future Professionals look to Ethereum as a blockchain-based platform to develop safe applications and conduct secure transactions. It takes a knowledgeable guiding hand to understand how Ethereum works and what it does — and Ethereum For Dummies provides that guidance. Written by one of the leading voices in the blockchain community and best selling author of Blockchain For Dummies, this book demystifies the workings of Ethereum and shows how it can enhance security, transactions, and investments. As an emerging application of blockchain technology, Ethereum attracts a wide swath of professionals ranging from financial pros who see it as a way to enhance their business, security analysts who want to conduct secure transactions, programmers who build apps that employ the Ethereum blockchain, or investors interested in cashing in on the rise of cryptocurrency. Ethereum For Dummies offers a starting point to all members of this audience as it provides easy-to-understand explanation of the tools and techniques of using Ethereum. Understand the fundamentals of Ethereum Build smart contracts Create decentralized applications Examine public and private chains If you need to get a grip on one of the biggest applications of blockchain technology, this book makes it easier.




Hands-On Smart Contract Development with Solidity and Ethereum


Book Description

Ready to dive into smart contract development for the blockchain? With this practical guide, experienced engineers and beginners alike will quickly learn the entire process for building smart contracts for Ethereum--the open source blockchain-based distributed computing platform. You'llget up to speed with the fundamentals and quickly move into builder mode. Kevin Solorio, Randall Kanna, and Dave Hoover show you how to create and test your own smart contract, create a frontend for users to interact with, and more. It's the perfect resource for people who want to break into the smart contract field but don't know where to start. In four parts, this book helps you: Explore smart contract fundamentals, including the Ethereum protocol, Solidity programming language, and the Ethereum Virtual Machine Dive into smart contract development using Solidity and gain experience with Truffle framework tools for deploying and testing your contracts Use Web3 to connect your smart contracts to an applicationso users can easily interact with the blockchain Examine smart contract security along with free online resources for smart contract security auditing