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.

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

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/ 

via Polycode

#ethereum #blockchain #node #javascript #web3

Real-Time check all transactions to an Ethereum address using Web3.js
7.60 GEEK