Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learn Ethereum
  • Toc
  • feedback
Learn Ethereum

Learn Ethereum

By : Xun (Brian) Wu, Zhihong Zou, Dongying Song
4.3 (27)
close
Learn Ethereum

Learn Ethereum

4.3 (27)
By: Xun (Brian) Wu, Zhihong Zou, Dongying Song

Overview of this book

Ethereum 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.
Table of Contents (19 chapters)
close
Free Chapter
1
Section 1: Blockchain and Ethereum Basics
5
Section 2: Blockchain Development Cycle
8
Section 3: Ethereum Implementations
12
Section 4: Production and Deployment
16
Section 5: Conclusion

Working with Web3 JavaScript API

Basically, web3.js is an Ethereum JavaScript API, which provides a collection of libraries for interacting with local or remote Ethereum networks. The connection between web3js and Ethereum is made by using the HTTP, WebSocket, or IPC protocol. In the following table, we will quickly review several 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.

getBalance, sendTransaction,

coinbase, getBlockNumber, getAccounts

web3-shh

This package provides an

API to interact with the

Whisper protocol for

broadcasting.

web3.shh.post({

symKeyID: identities[0],

topic: '0xffaadd11',

payload: '0xffffffdddddd1122'

}).then(h => console.log(`Message

with hash ${h} was successfuly sent`))

web3-bzz

This...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete