Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@biconomy/alerts

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biconomy/alerts

monitor various networks address balance

latest
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

Alerts

Alerts sdk allows to monitor balance of address in Ethereum, Polygon, Binance Smart Chain and xDai network.

Installation

Use the package manager npm to install balance-alert.

npm i -S @biconomy/alerts

Usage

import {
    Alerts, Monitor
} from "@biconomy/alerts";

new Alerts([{
    address: '', // address list to have balance alerts on
    threshold: '', // optional parameter for address specific threshold
    addressType: '' // optional parameter to identify between WALLET, CONTRACT, etc. in alerts
}], {
    jsonRpcURL: '', // rpc url of the network
    symbol: '', // symbol of token
    name: '', // name of token
    type: '', // network type eg. testnet or mainnet 
    explorerUrl: '', // explorer url 
    threshold: '', // default value, used in case of address threshold not provided (wei)
    monitoring: Monitor.BELOW,
    interval: 1, // value in minutes at which balance check will repeatedly take place (optional)
    slack: {
        token: '', // replace with token from slack
        channel: '', // channel id of slack
    },
}).start();

If interval parameter is not provided, balance will be checked when a trasaction occurs from the address.

:sparkles: Congratulations, you should see the following lines in your slack channel:

Slack Message

FAQs

Package last updated on 27 Oct 2021

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