Web3.js Tutorial – Check all transactions to an Ethereum address in Node.js (in real-time)


Timestamps:
00:00 – Introduction to web3.js
2:00 – Explanation and coding of method 1
13:21 – Explanation and coding of method 2
23:29 – Testing both scripts

This tutorial will teach you the basics of web3.js, the JavaScript API for interacting with the Ethereum network. We’ll be building 2 scripts that will both accomplish the same thing: monitor transactions to a given Ethereum address. The first script is very slow and network and resource intensive, while the second is more elegant and less heavy on the network and system.

Links:
Version 1 code
https://gist.github.com/jonasbostoen/e5de8af0e4436843a4ef59c4e9830b49
Version 2 code
https://gist.github.com/jonasbostoen/723a41383fd901a3dec6030d2c6a929f
Web3.js API Documentation
https://web3js.readthedocs.io/en/v1.2.1/

Leave a Reply

Your email address will not be published.