Web3 - Getting Started

A guide to getting started with Web3 using DEPLOY nodes


Web3 is a collection of libraries that allows you to read and write to the Ethereum blockchain.

It allows you to send Ether from one account to another, get balance of an account, create smart contracts, read and write from smart contracts among other things.

Web3.js connects with ethereum node (for example your node in DEPLOY) with JSON RPC (Remote Procedure Call) to read and write data to the network.

The web3.js library is a collection of modules which contain specific functionality for the ethereum ecosystem.

  • The web3-eth is for the ethereum blockchain and smart contracts

  • The web3-shh is for the whisper protocol to communicate p2p and broadcast

  • The web3-bzz is for the swarm protocol, the decentralized file storage

  • The web3-utils contains useful helper functions for Dapp developers.

Install Web3.js



  • Node.js is an open source, cross platform server environment for executing JavaScript code outside of a browser.

  • Node.js can be use to create web-servers and networked applications.

  • Node.js allows you to run JavaScript on the server.

  • Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)

Node Package Manager (NPM)

  • Node Package Manager (npm) which is package manager that makes installing Node packages fast and easy.

  • NPM gets installed when you install NodeJS.

brew install node
  1. Download latest version and go through installation process.

To Test

node -v

To Uninstall Node and NPM

brew uninstall node

Web3.js Library

You can now use NPM to install Web3.js library through the terminal.

npm install web3