December 2018
Intermediate to advanced
222 pages
6h 6m
English
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 |
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 => ... |
Read now
Unlock full access