OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

WEB3 By Example

WEB3 By Example is a public repository of JavaScript scripts that use Node.js and Web3.js to read basic information from Ethereum, including balances, transactions, network statistics and token data. The scripts run from the console and are presented as examples for learning blockchain interaction.

Independent OpenViST project profile, based on linked sources.

WEB3 By Example — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when learning how Web3.js scripts can retrieve Ethereum information from the console or when looking for a documented starting point for a small query utility.

Who it is for

  • Learners exploring Ethereum queries with JavaScript and Node.js.
  • Developers seeking example patterns for console-based balance, transaction, network or token lookups.

Documented uses

  • Query Ethereum account balances and ether information.
  • Inspect transaction details and network statistics.
  • Look up token information, including ERC-20 data.
  • Study a send-ether transaction example and its required library.
Before you choose

Requirements & limits

The repository is public and identifies its license as GPL-3.0.

  • Requires Node.js 8.7.0 or later and Web3 1.0.0, according to the README.
  • Ethereum access is described through Geth 1.7.1 or later or an Infura API token.
  • The send-ether example additionally requires ethereumjs-tx 1.3.3.
  • The README characterizes the scripts as educational and says Web3 1.0.0 was in beta at the time of its edit.
  • The documented workflow prints script results in the console.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run an Ethereum query example from the console

Run a repository script and view its printed Ethereum information.

Before you start

  • Node.js 8.7.0 or later
  • Web3 1.0.0
  • Geth 1.7.1 or later, or an Infura API token
  • Relevant Ethereum values to replace the script placeholders

Steps

  1. Set up Node.js and the Web3 module.

  2. Configure access using Geth or an Infura API token.

  3. Replace placeholder values in the chosen example with the relevant Ethereum values.

  4. Run the script from the console with the command below and read its output there.

    Documented command
    node example-script.js

Expected outcome

The selected script prints its results in the console.

Guide limitations

  • The README describes these as learning examples and notes that Web3 1.0.0 was in beta at the time of its edit.
  • This general query setup does not include the additional dependency required by the send-ether transaction example.
Source-based practical guide

Prepare the send-ether example dependencies

Set up the listed software prerequisites for the repository's send-ether transaction example.

Before you start

  • Node.js 8.7.0 or later
  • Web3 1.0.0
  • ethereumjs-tx 1.3.3
  • Geth 1.7.1 or later, or an Infura API token

Steps

  1. Set up Node.js and Web3.

  2. Install ethereumjs-tx 1.3.3, which the README identifies as required for the send-ether example.

  3. Arrange Ethereum access with Geth or an Infura API token.

  4. Consult the send-ether example's wiki page for its explanation.

Expected outcome

The documented software prerequisites and connection option for the send-ether example are identified and set up.

Guide limitations

  • The README does not provide a complete transaction execution walkthrough in the cited setup text.
  • The repository describes the examples as educational rather than production-ready.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 October 2026
Original website title
ThatOtherZach/Web3-by-Example · Official homepage title · retained in its source language