Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Ethereum

You're reading from  Mastering Ethereum

Product type Book
Published in Apr 2019
Publisher Packt
ISBN-13 9781789531374
Pages 490 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Merunas Grincalaitis Merunas Grincalaitis
Profile icon Merunas Grincalaitis

Table of Contents (17) Chapters

Preface 1. Section 1: Blockchain - Ethereum Refresher
2. Blockchain Architecture 3. Ethereum Ecosystems 4. Ethereum Assets 5. Section 2: Decentralized Application Development Workflow
6. Mastering Smart Contracts 7. Mastering dApps 8. Tools, Frameworks, Components, and Services 9. Deployment on Testnet 10. Various dApps Integrations 11. Decentralized Exchanges Workflow 12. Section 3: Ethereum Implementations
13. Machine Learning on the Ethereum Blockchain 14. Creating a Blockchain-based Social Media Platform 15. Creating a Blockchain-Based E-Commerce Marketplace 16. Other Books You May Enjoy

Finishing the dApp

Your React.js web application looks great, what's left is to connect the smart contract to the functions in your application so they talk to each other while preserving that decentralization, since anybody is free to use the React application where they want without relying on a centralized server.

The first step in connecting a smart contract with a web application is to install web3.js since it's the bridge between Ethereum and web browsers, although you may not need it as we already have MetaMask. In any case, it's important to have it to select a stable version that won't change for our dApp. Go ahead and run npm i -S web3 on your project folder.

Setting up the smart contract instance

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}