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
4
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 main or gamma networks.

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

exc-balance-checker

Code for checking an address' balance on Eximchain's main and test networks.

Usage

Install via:

npm install --save exc-balance-checker

Import the checker function:

import excChecker from 'exc-balance-checker';

The balance checker returns a Promise and comes with URLs to our Community Nodes already baked in, so you're ready to go:

const acctBalance = await excChecker(yourAddr, options);

The options object has a few possible keys:

Key NameDefault ValueUsage
useTestNetfalseBoolean, set true to query test net instead of main net.
customEndpointundefinedSet if you want to plug in your own node address. Cannot be specified along with useTestNet.
requireChecksumfalseWeb3 typically requires that addresses follow checksum capitalization, but we disable that check. Set to true to re-enable.
usernulluser argument for web3.HttpProvider.
timeoutnulltimeout argument for web3.HttpProvider.
passwordnullpassword argument for web3.HttpProvider.
headersnullheaders argument for web3.HttpProvider. Useful for setting the CORS Access-Control-Allow-Origin header, as Firefox and Safari will block requests which do not have that set.

FAQs

Package last updated on 12 Apr 2019

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