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
1
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.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
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/...");

There is one implementation which uses async/await syntax and another one which returns a Promise whose result is the balance:

let myBalance = await checker.balanceOfAsync(<myAddress>);

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

FAQs

Package last updated on 26 Sep 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