New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

exc-balance-checker

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exc-balance-checker

One-function solution for checking an address' balance on Eximchain's ERC 20

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

exc-balance-checker

Code for checking an address' balance with Eximchain's ERC20 token.

Usage

Install via:

npm install --save exc-balance-checker

Import the main checker class:

import BalanceChecker from 'exc-balance-checker';

Configure internal provider and you're ready to check balances:

const checker = new BalanceChecker("https://mainnet.infura.io/...");

The constructor takes an optional second options argument. It is an object which can have keys timeout, user, password, and headers, corresponding to the additional arguments which can be passed to the web3.HttpProvider(). This is useful for setting the CORS Access-Control-Allow-Origin header of your provider URL, as Firefox and Safari will block requests which do not have that set.

checker.balanceOf(<myAddress>).then((myBalance) => {
    // Use myBalance within here
})

// or

var myBalance = await checker.balanceOf(<myAddress>);

FAQs

Package last updated on 19 Nov 2018

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