Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eth-bulk-monitor-client-nodejs

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-bulk-monitor-client-nodejs

Ethplorer bulk Monitor API nodejs client

latest
Source
npmnpm
Version
0.0.38
Version published
Maintainers
2
Created
Source

NodeJS client for Ethplorer Bulk API Monitor

Fast tracking an unlimited number of ERC20 tokens and Ethereum addresses, even millions.

https://docs.ethplorer.io/monitor

Quickstart

Learn how to start tracking your Ethereum addresses with Ethplorer Bulk API and and Node.js.

Let's create a new project and add eth-bulk-monitor-client-nodejs library via npm.

$ mkdir monitor-example
$ cd monitor-example
$ npm init
$ npm i --save eth-bulk-monitor-client-nodejs
$ vim index.js

Create a new js file and start edit it.

First of all, let's include MonitorApp class:

const { MonitorApp } = require('eth-bulk-monitor-client-nodejs');

Then instantiate the class with your API key.

const monitorApp = new MonitorApp('put your API key here');

Finally, lets define the addresses we would like to monitor and a callback function:

monitorApp.init([
    '0x0000000000000000000000000000000000000001',
    '0x0000000000000000000000000000000000000002',
    '0x0000000000000000000000000000000000000003'
]).then(() => monitorApp.watch((data) => console.log(data)));

Voila, now we can get and process all the new transactions and ERC-20 operations for the specified addresses using just a single npm library and Node.js.

Examples

Reference

You can find the class reference here.

FAQs

Package last updated on 15 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts