Socket
Socket
Sign inDemoInstall

@biconomy/alerts

Package Overview
Dependencies
75
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @biconomy/alerts

monitor various networks address balance


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
2
Created
Weekly downloads
 

Readme

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

Last updated on 27 Oct 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc