Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
2
Weekly downloads
 
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc