Socket
Book a DemoInstallSign in
Socket

@eximchain/weyl-web3-client

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eximchain/weyl-web3-client

Tiny npm package which configures a web3.eth.Contract() for our WeylGov contract.

0.2.2
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

weyl-client

Tiny npm package which gives a configured interface to our WeylGov contract. For convenience, it also has a isBlockMaker method to check against the core BlockVoting contract. Ships with Typescript bindings built-in.

Usage is dead simple, require the constructor function and call it with your HttpProvider URL:

// Import as module, or use require().default
import ClientBuilder from '@eximchain/weyl-web3-client';

const ClientBuilder = require('@eximchain/weyl-web3-client').default

// Build a client using your Web3 Provider URL
const WeylClient = ClientBuilder(process.env['WEB3_URL']);

// Then use the contract
const numNominees = await WeylClient.contract.methods.nomineesInCycle().call();

// Or check a blockmaker
const isBlockMaker = await WeylClient.isBlockMaker(address);

Keywords

weyl

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.