Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Blockchain Quick Start Guide

You're reading from  Blockchain Quick Start Guide

Product type Book
Published in Dec 2018
Publisher Packt
ISBN-13 9781789807974
Pages 222 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
Xun (Brian) Wu Xun (Brian) Wu
Profile icon Xun (Brian) Wu
Weimin Sun Weimin Sun
Profile icon Weimin Sun
View More author details

Table of Contents (14) Chapters

Decentralized application overview


A decentralized application (or DApp) is an application that uses smart contracts to run. Smart contracts are deployed on the Ethereum virtual machine (EVM). It is similar to a client-server low-tier architecture. A DApp can have a frontend (web) that makes calls to its backend (smart contract) through the web3.js API.

 

The following structure is what we are going to build for our crowdfunding DApp:

Strucuture of what we will be building for crowdfunding DApp

web3.js quick overview

web3.js is an Ethereum JavaScript API, that provides a collection of libraries to interact with a local or remote Ethereum network. The connection between web3js and Ethereum is made by using the HTTP or IPC protocol. In the following table, we quickly review a number of important web3.js API concepts:

API reference

Description

Example

web3-eth

This package provides an API to interact with the Ethereum blockchain and smart contracts

getBalancesendTransaction, coinbasegetBlockNumber...

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}